You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: main.go
+4-5Lines changed: 4 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ type Response struct {
41
41
} `json:"choices"`
42
42
Errorstruct {
43
43
Messagestring`json:"message"`
44
-
Codeint`json:"code"`
44
+
Codestring`json:"code"`
45
45
Typestring`json:"type"`
46
46
} `json:"error"`
47
47
}
@@ -64,7 +64,7 @@ func gatherOptions() options {
64
64
fs.StringVar(&o.apiKey, "apiKey", "", "OpenAI API key")
65
65
fs.StringVar(&o.model, "model", "gpt-3.5-turbo", "OpenAI model ID")
66
66
fs.StringVar(&o.prompt, "prompt", "Write me a 100 word paragraph, use h1 and h2 and bold. reply in markdown format", "Text prompt to generate a response to")
67
-
fs.StringVar(&o.promptFile, "promptFile", "File", "Text prompt to generate a response to")
67
+
fs.StringVar(&o.promptFile, "promptFile", "", "Text prompt to generate a response to")
68
68
fs.IntVar(&o.maxTokens, "maxTokens", 50, "Maximum number of tokens to generate in the response")
69
69
fs.Float64Var(&o.temperature, "temperature", 0.5, "Sampling temperature for the model")
70
70
fs.Float64Var(&o.frequencyPenalty, "frequencyPenalty", 0.5, "Frequency penalty for the model")
0 commit comments