optimize: high cpu

This commit is contained in:
Xyfacai
2023-11-23 21:40:17 +08:00
parent b58fdc21db
commit 7633ef1ea9
4 changed files with 51 additions and 25 deletions
+4
View File
@@ -189,6 +189,10 @@ type ChatCompletionsStreamResponse struct {
Choices []ChatCompletionsStreamResponseChoice `json:"choices"`
}
type ChatCompletionsStreamResponseSimple struct {
Choices []ChatCompletionsStreamResponseChoice `json:"choices"`
}
type CompletionsStreamResponse struct {
Choices []struct {
Text string `json:"text"`