Documentation
¶
Index ¶
- Variables
- type ProviderSpec
- type Registry
- func (r *Registry) ActiveSelection() (string, string)
- func (r *Registry) ContextWindow(providerID string, modelID string) int
- func (r *Registry) Models(ctx context.Context, providerID string) ([]string, error)
- func (r *Registry) Normalize(providerID string, modelID string) (core.SessionProviderOption, string, error)
- func (r *Registry) Providers() []core.SessionProviderOption
- func (r *Registry) Resolve(ctx context.Context, providerID string, modelID string) (providers.Runtime, core.SessionProviderOption, string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoActiveProvider = errors.New("no active provider configured; open setup providers to configure one") ErrProviderNotConfigured = errors.New("provider is not configured") )
Functions ¶
This section is empty.
Types ¶
type ProviderSpec ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func New ¶
func New(activeProviderID string, providerSpecs []ProviderSpec) *Registry
func (*Registry) ActiveSelection ¶
func (*Registry) ContextWindow ¶ added in v0.2.1
ContextWindow is the window of a provider's model: the manual setting when the model is the one the provider is configured with, else the catalog.
func (*Registry) Providers ¶
func (r *Registry) Providers() []core.SessionProviderOption
Click to show internal directories.
Click to hide internal directories.