fix: 将openai_source的结果消息链的构造方式和其他统一

This commit is contained in:
anka
2025-04-06 09:12:52 +00:00
parent f0c8f39b6d
commit 8ed3d5f3db
@@ -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)