Skip to content

Ollama Qwen 3B and Mistral Small 3.1 cannot handle Toolbox tools #1105

@simonw

Description

@simonw

This is odd:

llm chat -T QuickJS -m qwen3:4b --td                              
Chatting with qwen3:4b
Type 'exit' or 'quit' to exit
Type '!multi' to enter multiple lines, then '!end' to finish
Type '!edit' to open your default editor and modify the prompt
Type '!fragment <my_fragment> [<another_fragment> ...]' to insert one or more fragments
> Calcuate 2343242 * 23424323 with quickjs
ToolResult(name='execute_javascript', output='Error: tool "execute_javascript" does not exist', tool_call_id=None, instance=None)
ToolResult(name='execute_javascript', output='Error: tool "execute_javascript" does not exist', tool_call_id=None, instance=None)
ToolResult(name='execute_javascript', output='Error: tool "execute_javascript" does not exist', tool_call_id=None, instance=None)
^C
Aborted!
(llm) (base) simon@Mac llm % llm chat -T QuickJS -m qwen3:4b --td
Chatting with qwen3:4b
Type 'exit' or 'quit' to exit
Type '!multi' to enter multiple lines, then '!end' to finish
Type '!edit' to open your default editor and modify the prompt
Type '!fragment <my_fragment> [<another_fragment> ...]' to insert one or more fragments
> Use QuickQS_execute_javascript to run 23423432 * 23423423
ToolResult(name='execute_javascript', output='Error: tool "execute_javascript" does not exist', tool_call_id=None, instance=None)
ToolResult(name='execute_javascript', output='Error: tool "execute_javascript" does not exist', tool_call_id=None, instance=None)

Makes me suspect that Qwen 3 4B via Ollama cannot handle tools like QuickQS_execute_javascript - it treats them as execute_javascript instead.

If this is just Qwen 3 4B that's not too worrying - if it's all the Qwen models AND any other Ollama model it's a big problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtools

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions