Documentation
¶
Overview ¶
Package config loads optional settings from <home>/.bildomat/config.yml. It returns settings and classified faults so the caller can warn about configuration errors without stopping the run.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnknownProviderFault ¶
UnknownProviderFault describes an api-keys provider absent from the catalog.
Types ¶
type Settings ¶
type Settings struct {
DefaultModel string `yaml:"default-model"`
DefaultOutputDir string `yaml:"output-dir"`
APIKeys map[string]string `yaml:"api-keys"`
}
Settings holds optional defaults and API keys. Empty values mean unset; Load removes empty API keys.
- DefaultModel: the model used when --model is omitted; anything the --model flag accepts
- DefaultOutputDir: the directory used when no output location is given; anything the directory portion of --output-path accepts
- APIKeys: API keys by provider ID, which outrank the providers' environment variables
Click to show internal directories.
Click to hide internal directories.