mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 15:15:56 +08:00
fix: qwen fc error (#6620)
Co-authored-by: dufei <du_fei@venusgroup.com.cn>
This commit is contained in:
parent
f324374b95
commit
5af2df0cd5
@ -500,6 +500,9 @@ You should also complete the text started with ``` but not tell ``` directly.
|
||||
tongyi_messages.append({
|
||||
'role': 'assistant',
|
||||
'content': content if not rich_content else [{"text": content}],
|
||||
'tool_calls': [tool_call.model_dump() for tool_call in
|
||||
prompt_message.tool_calls] if prompt_message.tool_calls else []
|
||||
|
||||
})
|
||||
elif isinstance(prompt_message, ToolPromptMessage):
|
||||
tongyi_messages.append({
|
||||
|
Loading…
x
Reference in New Issue
Block a user