Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Model string
Description string
MaxConcurrent int
Token string
Backend backend.Config
HubURL string
LogFile string
RateLimit int // requests per minute, 0 = unlimited
TokenManager *auth.TokenManager
}
Config holds provider configuration
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider manages the lifecycle of a published model
func (*Provider) CloseConnection ¶ added in v0.4.0
func (p *Provider) CloseConnection()
CloseConnection closes the current WebSocket without stopping the provider, allowing the reconnect loop in Start to re-establish the connection.
func (*Provider) Start ¶
Start begins listening for inference requests. If the WebSocket connection drops, it automatically reconnects once per minute.
func (*Provider) Status ¶
func (p *Provider) Status() ProviderStatus
Status returns the current provider status
type ProviderStatus ¶
type ProviderStatus struct {
ProviderID string `json:"provider_id"`
Model string `json:"model"`
Status string `json:"status"`
Uptime int64 `json:"uptime_seconds"`
RequestCount int64 `json:"request_count"`
QueueDepth int `json:"queue_depth"`
GPUUtil float64 `json:"gpu_util"`
Timestamp time.Time `json:"timestamp"`
}
ProviderStatus represents detailed provider status
Click to show internal directories.
Click to hide internal directories.