optimize: high cpu

This commit is contained in:
Xyfacai committed 2023-11-23 21:40:17 +08:00
1 parent b58fdc21db
commit 7633ef1ea9
4 files changed
+51 -25

No files matched your search

+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"`