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 @@ -4046,7 +4046,7 @@ class Qwen3VLChatHandler(Llava15ChatHandler):
"{{- '\n' -}}"
"{{- tool | tojson -}}"
"{%- endfor -%}"
"{{- '\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <arguments-json-object>}\n</tool_call>\n\nYou can also return a response for the user alongside a function call:\n<response-for-user>\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <arguments-json-object>}\n</tool_call>' -}}"
"{{- '\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <arguments-json-object>}\n</tool_call>\n\nYou can also return a response for the user alongside a function call:\nRESPONSE FOR THE USER HERE\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <arguments-json-object>}\n</tool_call>' -}}"
"{%- endif -%}"
"{{- '<|im_end|>\n' -}}"
"{%- set image_count = namespace(value=0) -%}"
Expand Down Expand Up @@ -4108,7 +4108,7 @@ class Qwen3VLChatHandler(Llava15ChatHandler):
"{%- endif -%}"
"{%- endfor -%}"
"{%- if add_generation_prompt -%}"
"{{- '<im_start>assistant\n' -}}"
"{{- '<|im_start|>assistant\n' -}}"
"{%- if force_reasoning -%}"
"{{- '<think>\n' -}}"
"{%- endif -%}"
Expand Down