Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllowsEmptyAPIKey ¶
AllowsEmptyAPIKey reports whether empty api_key_env is valid for this type.
func CatalogAliases ¶
CatalogAliases returns modelcatalog fallback types for a provider type.
func RegisterSpec ¶
func RegisterSpec(spec Spec)
RegisterSpec stores or replaces a provider type Spec.
Types ¶
type AuthMode ¶
type AuthMode string
AuthMode controls whether an empty api_key_env is allowed at call time.
type Capabilities ¶
type Capabilities struct {
Chat bool `json:"chat"`
Stream bool `json:"stream"`
TTS bool `json:"tts"`
STT bool `json:"stt"`
Embedding bool `json:"embedding"`
Image bool `json:"image"`
}
Capabilities describes default modality support for a provider type.
type Spec ¶
type Spec struct {
Type string
DisplayName string
DefaultBaseURL string
DefaultAPIKeyEnv string
Capabilities Capabilities
AuthMode AuthMode
UIVisible bool
Seed bool
SeedID string // defaults to prov_<type>
SeedRoute *SeedRoute
CatalogAlias string // modelcatalog fallback type
}
Spec is the single registration record for a provider type.
func (Spec) SeedProviderID ¶
SeedProviderID returns the stable seed row id for a Spec.
Click to show internal directories.
Click to hide internal directories.