mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
fix: golangci-lint version (#1381)
* chore: update interface declare * chore: update args * chore: update * chore: update
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user