mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-02 12:05:54 +00:00
fix: chat_completion不传回finish_reason的问题
This commit is contained in:
@@ -129,7 +129,7 @@ class ChatCompletionRequest(RequestBase):
|
||||
"type": "text",
|
||||
"content": choice0['message']['content']
|
||||
},
|
||||
"finish_reason": "stop"
|
||||
"finish_reason": choice0["finish_reason"]
|
||||
}
|
||||
],
|
||||
"usage": resp["usage"]
|
||||
|
||||
Reference in New Issue
Block a user