Dive icon indicating copy to clipboard operation
Dive copied to clipboard

[Bug] The Qwen 3 models should support mcp tool calls

Open peterhoang opened this issue 1 year ago • 4 comments

I'm trying to use these models via OpenRouter but Dive reports that these models do not support tool calling. Can you investigate? Thanks.

peterhoang avatar May 03 '25 17:05 peterhoang

We've identified that Deepinfra's Qwen3 model accessed through OpenRouter doesn't properly support Tool Calls - attempting to use them results in 502 errors.

The current workaround is to reformat Tool Calls as part of the prompt text rather than using the standard Tool Calls format. While this isn't the ideal solution from an implementation standpoint, it appears to be functional.

This compatibility issue isn't unique to Qwen3—we're seeing similar problems across multiple models. Given these widespread compatibility challenges, our development team is temporarily testing this prompt-wrapping approach. The disadvantage is that it is slow and wastes tokens.

kevinwatt avatar May 05 '25 09:05 kevinwatt

In version v0.8.5, Qwen 3 should be able to call tools through the tools call method in the prompt.

johnfunmula avatar May 14 '25 03:05 johnfunmula

can confirm that for qwen3 it is using tools in prompt.instead of tool calls, and it works.

can you name a model avaiable in ollama and directly support tool calls? prefer a smaller size model for testing.

let me know if this belongs to the dive-mcp-host repo

railty avatar May 21 '25 16:05 railty

@railty

can you name a model avaiable in ollama and directly support tool calls? prefer a smaller size model for testing.

I tested the ollama models I have installed, and they seem to only support tool call in prompt.

let me know if this belongs to the dive-mcp-host repo

Yes, this issue belongs to the dive-mcp-host repo.

ckaznable avatar May 22 '25 02:05 ckaznable