fix: fix SensitiveWords error
This commit is contained in:
1 parent
8b96117839
commit
a5088f5e23
4 files changed
+22
-12
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user