From c564a1d53e4088317fb50bfb8b75cd4940e6bcdf Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Mon, 10 Feb 2025 00:26:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20raw=5Fcompletion=20=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E6=AD=A3=E7=A1=AE=E4=BC=A0=E9=80=92=20#439?= 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, 2 insertions(+) diff --git a/astrbot/core/provider/sources/openai_source.py b/astrbot/core/provider/sources/openai_source.py index ceb1361ac..051029806 100644 --- a/astrbot/core/provider/sources/openai_source.py +++ b/astrbot/core/provider/sources/openai_source.py @@ -105,6 +105,8 @@ class ProviderOpenAIOfficial(Provider): logger.error(f"API 返回的 completion 无法解析:{completion}。") raise Exception(f"API 返回的 completion 无法解析:{completion}。") + llm_response.raw_completion = completion + return llm_response async def text_chat(