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