From 1336d3cb9aae10f28ec06f89edeef6acb2887f92 Mon Sep 17 00:00:00 2001 From: RockChinQ <1010553892@qq.com> Date: Tue, 1 Aug 2023 14:39:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20chat=5Fcompletion=E4=B8=8D=E4=BC=A0?= =?UTF-8?q?=E5=9B=9Efinish=5Freason=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/openai/api/chat_completion.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/openai/api/chat_completion.py b/pkg/openai/api/chat_completion.py index 27dae72..4c375f7 100644 --- a/pkg/openai/api/chat_completion.py +++ b/pkg/openai/api/chat_completion.py @@ -129,7 +129,7 @@ class ChatCompletionRequest(RequestBase): "type": "text", "content": choice0['message']['content'] }, - "finish_reason": "stop" + "finish_reason": choice0["finish_reason"] } ], "usage": resp["usage"]