fix: chat_completion不传回finish_reason的问题

This commit is contained in:
RockChinQ 2023-08-01 14:39:57 +08:00
parent d1459578cd
commit 1336d3cb9a

View File

@ -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"]