mirror of
https://github.com/RockChinQ/QChatGPT.git
synced 2024-11-16 03:32:33 +08:00
fix: chat_completion不传回finish_reason的问题
This commit is contained in:
parent
d1459578cd
commit
1336d3cb9a
|
@ -129,7 +129,7 @@ class ChatCompletionRequest(RequestBase):
|
|||
"type": "text",
|
||||
"content": choice0['message']['content']
|
||||
},
|
||||
"finish_reason": "stop"
|
||||
"finish_reason": choice0["finish_reason"]
|
||||
}
|
||||
],
|
||||
"usage": resp["usage"]
|
||||
|
|
Loading…
Reference in New Issue
Block a user