mirror of
https://github.com/kardolus/chatgpt-cli.git
synced 2024-09-08 23:15:00 +03:00
26 lines
1.1 KiB
Go
26 lines
1.1 KiB
Go
package types
|
|
|
|
type Config struct {
|
|
Name string `yaml:"name"`
|
|
APIKey string `yaml:"api_key"`
|
|
Model string `yaml:"model"`
|
|
MaxTokens int `yaml:"max_tokens"`
|
|
ContextWindow int `yaml:"context_window"`
|
|
Role string `yaml:"role"`
|
|
Temperature float64 `yaml:"temperature"`
|
|
TopP float64 `yaml:"top_p"`
|
|
FrequencyPenalty float64 `yaml:"frequency_penalty"`
|
|
PresencePenalty float64 `yaml:"presence_penalty"`
|
|
Thread string `yaml:"thread"`
|
|
OmitHistory bool `yaml:"omit_history"`
|
|
URL string `yaml:"url"`
|
|
CompletionsPath string `yaml:"completions_path"`
|
|
ModelsPath string `yaml:"models_path"`
|
|
AuthHeader string `yaml:"auth_header"`
|
|
AuthTokenPrefix string `yaml:"auth_token_prefix"`
|
|
CommandPrompt string `yaml:"command_prompt"`
|
|
AutoCreateNewThread bool `yaml:"auto_create_new_thread"`
|
|
TrackTokenUsage bool `yaml:"track_token_usage"`
|
|
Debug bool `yaml:"debug"`
|
|
}
|