fix: fix SensitiveWords error

This commit is contained in:
CaIon committed 2024-03-21 14:29:56 +08:00
1 parent 8b96117839
commit a5088f5e23
4 files changed
+22 -12

No files matched your search

+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 {