fix: 将openai_source的结果消息链的构造方式和其他统一
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user