Documentation
¶
Index ¶
Constants ¶
View Source
const ( ProviderTypeLocal = "local" ProviderTypeOllama = "ollama" ProviderTypeOpenAI = "openai" ProviderTypeAnthropic = "anthropic" ProviderTypeMistral = "mistral" ProviderTypeBedrock = "bedrock" ProviderTypeGemini = "gemini" ProviderTypeVLLM = "vllm" ProviderTypeVertexGoogle = "vertex-google" )
Variables ¶
View Source
var ErrInvalidProvider = errors.New("invalid provider")
Functions ¶
This section is empty.
Types ¶
type ProviderCapability ¶
type ProviderStatus ¶
type ProviderStatus struct {
Provider string `json:"provider"`
Configured bool `json:"configured"`
BackendID string `json:"backendId,omitempty"`
BackendName string `json:"backendName,omitempty"`
BaseURL string `json:"baseUrl,omitempty"`
SecretSource string `json:"secretSource"`
SecretConfigured bool `json:"secretConfigured"`
SecretPresent bool `json:"secretPresent"`
APIKeyEnv string `json:"apiKeyEnv,omitempty"`
RecommendedAPIKeyEnv string `json:"recommendedApiKeyEnv,omitempty"`
DefaultProvider string `json:"defaultProvider,omitempty"`
DefaultModel string `json:"defaultModel,omitempty"`
UpdatedAt time.Time `json:"updatedAt,omitempty"`
}
type Service ¶
type Service interface {
Configure(ctx context.Context, providerType string, req ConfigureProviderRequest) (*ProviderStatus, error)
GetProviderConfig(ctx context.Context, providerType string) (*ProviderStatus, error)
DeleteProviderConfig(ctx context.Context, providerType string) error
ListProviderConfigs(ctx context.Context, createdAtCursor *time.Time, limit int) ([]*ProviderStatus, error)
ListSupportedProviders(ctx context.Context) ([]ProviderCapability, error)
}
Click to show internal directories.
Click to hide internal directories.