fix: fix SensitiveWords error

This commit is contained in:
CaIon
2024-03-21 14:29:56 +08:00
parent 8b96117839
commit a5088f5e23
4 changed files with 22 additions and 12 deletions
+7 -2
View File
@@ -1,9 +1,14 @@
package dto
type TextResponseWithError struct {
Choices []OpenAITextResponseChoice `json:"choices"`
Usage `json:"usage"`
Error OpenAIError `json:"error"`
}
type TextResponse struct {
Choices []*OpenAITextResponseChoice `json:"choices"`
Choices []OpenAITextResponseChoice `json:"choices"`
Usage `json:"usage"`
Error *OpenAIError `json:"error,omitempty"`
}
type OpenAITextResponseChoice struct {