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 23 additions and 13 deletions
+8 -3
View File
@@ -1,9 +1,14 @@
package dto
type TextResponse struct {
Choices []*OpenAITextResponseChoice `json:"choices"`
type TextResponseWithError struct {
Choices []OpenAITextResponseChoice `json:"choices"`
Usage `json:"usage"`
Error OpenAIError `json:"error"`
}
type TextResponse struct {
Choices []OpenAITextResponseChoice `json:"choices"`
Usage `json:"usage"`
Error *OpenAIError `json:"error,omitempty"`
}
type OpenAITextResponseChoice struct {