13 lines
316 B
Go
13 lines
316 B
Go
package config
|
|
|
|
type LLM struct {
|
|
Provider LLMProvider `envPrefix:"PROVIDER_"`
|
|
}
|
|
|
|
type LLMProvider struct {
|
|
Name string `env:"NAME" envDefault:"openai"`
|
|
BaseURL string `env:"BASE_URL" envDefault:"https://api.openai.com/v1/"`
|
|
Key string `env:"KEY"`
|
|
Model string `env:"MODEL" envDefault:"gpt-4o-mini"`
|
|
}
|