Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpandEnvVars ¶
func GetConfigPaths ¶
func GetConfigPaths() []string
Types ¶
type Config ¶
type Config struct {
DefaultProvider string `yaml:"default_provider"`
DefaultTargetLanguage string `yaml:"default_target_language"`
Settings Settings `yaml:"settings"`
StrongValidation StrongValidation `yaml:"strong_validation"`
Proxy ProxyConfig `yaml:"proxy"`
Providers map[string]ProviderConfig `yaml:"providers"`
Prompts Prompts `yaml:"prompts"`
Glossary []GlossaryEntry `yaml:"glossary"`
}
func DefaultConfig ¶
func DefaultConfig() *Config
type GlossaryEntry ¶
type ProviderConfig ¶
type ProviderConfig struct {
APIKey string `yaml:"api_key"`
BaseURL string `yaml:"base_url"`
Model string `yaml:"model"`
Proxy ProxyConfig `yaml:"proxy"`
}
type ProxyConfig ¶
type Settings ¶
type Settings struct {
Temperature float64 `yaml:"temperature"`
MaxTokens int `yaml:"max_tokens"`
Timeout int `yaml:"timeout"`
ChunkSize int `yaml:"chunk_size"`
PreserveFormat bool `yaml:"preserve_format"`
RetryCount int `yaml:"retry_count"`
RetryDelay int `yaml:"retry_delay"`
Sentiment bool `yaml:"sentiment"`
TagsCount int `yaml:"tags_count"`
Classify bool `yaml:"classify"`
Emotions bool `yaml:"emotions"`
Factuality bool `yaml:"factuality"`
Impact bool `yaml:"impact"`
Sensationalism bool `yaml:"sensationalism"`
Entities bool `yaml:"entities"`
Events bool `yaml:"events"`
Usefulness bool `yaml:"usefulness"`
TimeFocus bool `yaml:"time_focus"`
AdDetect bool `yaml:"ad_detect"`
}
Click to show internal directories.
Click to hide internal directories.