fix: golangci-lint version (#1381)

* chore: update interface declare

* chore: update args

* chore: update

* chore: update
This commit is contained in:
boojack
2023-03-18 22:34:22 +08:00
committed by GitHub
parent 573f07ec82
commit ff8851fd9f
19 changed files with 47 additions and 44 deletions

View File

@@ -14,7 +14,7 @@ type TextCompletionChoice struct {
}
type TextCompletionResponse struct {
Error interface{} `json:"error"`
Error any `json:"error"`
Model string `json:"model"`
Choices []TextCompletionChoice `json:"choices"`
}
@@ -28,7 +28,7 @@ func PostTextCompletion(prompt string, apiKey string, apiHost string) (string, e
return "", err
}
values := map[string]interface{}{
values := map[string]any{
"model": "gpt-3.5-turbo",
"prompt": prompt,
"temperature": 0.5,