Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigPaths ¶
func ConfigPaths() []string
ConfigPaths returns the paths to the configuration files.
func InitConfig ¶
InitConfig initializes the configuration for gencmd on a new system.
Types ¶
type Config ¶
type Config struct {
LLM LLMConfig `yaml:"llm"`
}
Config represents the configuration structure for the application.
func Default ¶
func Default() Config
Default returns a default configuration with sensible defaults.
func DefaultFromEnv ¶
func DefaultFromEnv() Config
DefaultFromEnv returns a default configuration based on environment variables.
type LLMConfig ¶
type LLMConfig struct {
Provider string `yaml:"provider"`
ModelName string `yaml:"modelName"`
PromptTemplate string `yaml:"promptTemplate"`
}
LLMConfig represents the configuration for the Language Model.
type ProviderDoc ¶
type ProviderDoc struct {
ID string
Name string
URL string
Options []ProviderOption
// Fixed environment variables for the provider
FixedEnv map[string]string
}
func ProvidersInitOptions ¶
func ProvidersInitOptions() []ProviderDoc
ProvidersInitOptions returns the initialization options for each provider.
type ProviderOption ¶
Click to show internal directories.
Click to hide internal directories.