mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 09:28:04 +08:00
fix(prompts): fix default argument handling in tool calls
This commit is contained in:
@ -315,7 +315,7 @@ def _build_messages_from_trace(
|
||||
type="function",
|
||||
function=AssistantPromptMessage.ToolCall.ToolCallFunction(
|
||||
name=tc.name or "",
|
||||
arguments=tc.arguments or "",
|
||||
arguments=tc.arguments or "{}",
|
||||
),
|
||||
)
|
||||
for tc in model_output.tool_calls
|
||||
|
||||
Reference in New Issue
Block a user