fix: 修复流模式错误扣费的问题 (close #95)
This commit is contained in:
1 parent
d522d16d82
commit
d703cccc8a
16 files changed
+166
-35
No files matched your search
@@ -246,7 +246,7 @@ func geminiChatHandler(c *gin.Context, resp *http.Response, promptTokens int, mo
|
||||
}
|
||||
if len(geminiResponse.Candidates) == 0 {
|
||||
return &dto.OpenAIErrorWithStatusCode{
|
||||
OpenAIError: dto.OpenAIError{
|
||||
Error: dto.OpenAIError{
|
||||
Message: "No candidates returned",
|
||||
Type: "server_error",
|
||||
Param: "",
|
||||
|
||||
Reference in new issue
Block a user