Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigPath ¶
func ConfigPath() string
Types ¶
type AuthMethod ¶
type AuthMethod string
const ( AuthMethodAPIKey AuthMethod = "api_key" AuthMethodOAuth AuthMethod = "oauth" AuthMethodNone AuthMethod = "none" )
type Config ¶
type Config struct {
Providers []ProviderConfig `yaml:"providers"`
Consensus ConsensusConfig `yaml:"consensus"`
TUI TUIConfig `yaml:"tui"`
Metadata MetadataConfig `yaml:"metadata,omitempty"`
}
func DefaultConfig ¶
func DefaultConfig() Config
func (*Config) PrimaryProvider ¶
func (c *Config) PrimaryProvider() *ProviderConfig
type ConsensusConfig ¶
type MetadataConfig ¶
type ProviderConfig ¶
type ProviderConfig struct {
Name string `yaml:"name"`
Type ProviderType `yaml:"type"`
Auth AuthMethod `yaml:"auth"`
Model string `yaml:"model"`
Primary bool `yaml:"primary,omitempty"`
BaseURL string `yaml:"base_url,omitempty"`
MaxContext int `yaml:"max_context,omitempty"`
}
type ProviderType ¶
type ProviderType string
const ( ProviderTypeAnthropic ProviderType = "anthropic" ProviderTypeOpenAI ProviderType = "openai" ProviderTypeGoogle ProviderType = "google" ProviderTypeOpenAICompatible ProviderType = "openai_compatible" )
Click to show internal directories.
Click to hide internal directories.