Tool calls fail in opencode

#3
by retowyss - opened

Tool calls fail in opencode using vllm backend.

Thought: I am trying to list files in the current directory. I should use the glob tool to get a count of files. Let me use glob with pattern "*" to match all files and directories.
# invalid [tool=, error=Model tried to call unavailable tool ''. Available tools: bash, edit, edit-image, glob, grep, invalid, question, read, skill, task, todowrite, webfetch, write.]
The arguments provided to the tool are invalid: Model tried to call unavailable tool ''. Available tools: bash, edit, edit-image, glob, grep, invalid, question, read, skill, task, todowrite, webfetch, write.

This doesn't happen with any other model.

I've tried various ways of adapting the chat template but no luck. So maybe the parser is borked.

Any feedback or guidance is much appreciated.

I'm seeing this as well. Using vllm nightly with 8 x RTX 3090.

Tool calls succeed for me in Open WebUI, but fail every time in Opencode.

Sign up or log in to comment