Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
kardolus
GitHub Repository: kardolus/chatgpt-cli
Path: blob/main/config/config.go
2865 views
1
package config
2
3
type Config struct {
4
Name string `yaml:"name"`
5
APIKey string `yaml:"api_key"`
6
APIKeyFile string `yaml:"api_key_file"`
7
Model string `yaml:"model"`
8
MaxTokens int `yaml:"max_tokens"`
9
ContextWindow int `yaml:"context_window"`
10
Role string `yaml:"role"`
11
Temperature float64 `yaml:"temperature"`
12
TopP float64 `yaml:"top_p"`
13
FrequencyPenalty float64 `yaml:"frequency_penalty"`
14
PresencePenalty float64 `yaml:"presence_penalty"`
15
Thread string `yaml:"thread"`
16
OmitHistory bool `yaml:"omit_history"`
17
URL string `yaml:"url"`
18
CompletionsPath string `yaml:"completions_path"`
19
ModelsPath string `yaml:"models_path"`
20
ResponsesPath string `yaml:"responses_path"`
21
SpeechPath string `yaml:"speech_path"`
22
ImageGenerationsPath string `yaml:"image_generations_path"`
23
ImageEditsPath string `yaml:"image_edits_path"`
24
TranscriptionsPath string `yaml:"transcriptions_path"`
25
AuthHeader string `yaml:"auth_header"`
26
AuthTokenPrefix string `yaml:"auth_token_prefix"`
27
CommandPrompt string `yaml:"command_prompt"`
28
CommandPromptColor string `yaml:"command_prompt_color"`
29
OutputPrompt string `yaml:"output_prompt"`
30
OutputPromptColor string `yaml:"output_prompt_color"`
31
AutoCreateNewThread bool `yaml:"auto_create_new_thread"`
32
TrackTokenUsage bool `yaml:"track_token_usage"`
33
SkipTLSVerify bool `yaml:"skip_tls_verify"`
34
Multiline bool `yaml:"multiline"`
35
Seed int `yaml:"seed"`
36
Effort string `yaml:"effort"`
37
Voice string `yaml:"voice"`
38
ApifyAPIKey string `yaml:"apify_api_key"`
39
UserAgent string `yaml:"user_agent"`
40
CustomHeaders map[string]string `yaml:"custom_headers"`
41
}
42
43