Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions llama_cpp/llama_chat_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -5001,7 +5001,7 @@ class Qwen35ChatHandler(MTMDChatHandler):
" {{- '<|im_start|>' + message.role + '\n' + content -}}"
" {%- endif -%}"
" {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping -%}"
" {%- for tool_call in message.tool_call -%}"
" {%- for tool_call in message.tool_calls -%}"
" {%- if tool_call.function is defined -%}"
" {%- set tool_call = tool_call.function -%}"
" {%- endif -%}"
Expand All @@ -5016,7 +5016,7 @@ class Qwen35ChatHandler(MTMDChatHandler):
" {%- endif -%}"
" {%- if tool_call.arguments is defined -%}"
" {%- for (args_name, args_value) in tool_calls.arguments | items -%}"
" {{- '<parameter=' + args.name + '>\n' -}}"
" {{- '<parameter=' + args_name + '>\n' -}}"
" {%- set args_value = args_value | tojson | safe if args_value is mapping or args_value is sequence and args_value is not string else args_value | string -%}"
" {{- args_value -}}"
" {{- '\n</parameter>' -}}"
Expand Down