From 8ed3d5f3db44a4be578f26917400f2d4185eefe5 Mon Sep 17 00:00:00 2001 From: anka <1350989414@qq.com> Date: Sun, 6 Apr 2025 09:12:52 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B0=86openai=5Fsource=E7=9A=84?= =?UTF-8?q?=E7=BB=93=E6=9E=9C=E6=B6=88=E6=81=AF=E9=93=BE=E7=9A=84=E6=9E=84?= =?UTF-8?q?=E9=80=A0=E6=96=B9=E5=BC=8F=E5=92=8C=E5=85=B6=E4=BB=96=E7=BB=9F?= =?UTF-8?q?=E4=B8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- astrbot/core/provider/sources/openai_source.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/astrbot/core/provider/sources/openai_source.py b/astrbot/core/provider/sources/openai_source.py index 7c4f5995e..9f3db42a4 100644 --- a/astrbot/core/provider/sources/openai_source.py +++ b/astrbot/core/provider/sources/openai_source.py @@ -171,7 +171,7 @@ class ProviderOpenAIOfficial(Provider): if choice.message.content: # text completion completion_text = str(choice.message.content).strip() - llm_response.completion_text = completion_text + llm_response.result_chain = MessageChain().message(completion_text) if choice.message.tool_calls: # tools call (function calling)