Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { DefaultProvider string `json:"default_provider"` DefaultModel string `json:"default_model"` Providers []Provider `json:"providers"` }
Config holds the overall configuration, including default settings and providers.
type Model ¶
type Model struct { Text string `json:"text"` Description string `json:"description"` MaxContext int `json:"max_context"` }
Model represents a configuration model with text, description, and maximum context.
type Provider ¶
type Provider struct { Name string `json:"name"` APIURL string `json:"api_url"` APIKeyEnv string `json:"api_key_env"` // Reference to environment variable APIKey string DefaultModel string `json:"default_model"` Models []Model `json:"models"` }
Provider encapsulates the details of an API provider, including credentials and available models.
Click to show internal directories.
Click to hide internal directories.