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