zed icon indicating copy to clipboard operation
zed copied to clipboard

Agent Panel: Support for Mistral Provider tool calling

Open KorigamiK opened this issue 6 months ago • 4 comments

Summary

Currently not all providers support the tool calling necessary for use with the agent.

The Mistral provider currently lacks this functionality. (as of 2025-05-05 this has also not been implemented for LM Studio or DeepSeek too)

See also:

  • https://github.com/zed-industries/zed/pull/29563
  • https://github.com/zed-industries/zed/pull/29369

KorigamiK avatar May 03 '25 20:05 KorigamiK

which means there's virtually no benefit of using an open source editor if it locks you to subscribing to their partnered or proprietary subscription models.

We're not trying to lock anyone into using certain models or restrict which models can be used.

The providers/models that cannot use tools are only because we haven't implemented tool use for them yet.

Right now our focus is building a really great experience for the Agent, and to do that we've had to necessarily focus on Claude.

But tool use support will be coming for other models (and PRs that do so are welcome).

maxdeviant avatar May 03 '25 23:05 maxdeviant

I've edited the description of this issue to update this to a feature request for the Mistral provider to support tool calling with in the Agent Panel. Thanks for reporting.

notpeter avatar May 05 '25 19:05 notpeter

Mistral provide the same function calling API as OpenAI so why not allow tool use just to test how it behave ? https://docs.mistral.ai/capabilities/function_calling/

vlebert avatar May 08 '25 12:05 vlebert

Mistral provide the same function calling API as OpenAI so why not allow tool use just to test how it behave ?

@vlebert Feel free to help test here: https://github.com/zed-industries/zed/pull/29994. That's literally what we are doing. Asking why Zed hasn't yet shipped a partially broken implementation is going to fall on deaf ears.

notpeter avatar May 08 '25 13:05 notpeter

Hi So the branch have been merged 2 days ago and I am on last version (0.186.12). I still can't use tools with Mistral models.

Image

Is the issue on my side ? Or is it not available yet in last version (maybe I don't understand the build cycle)

Moreover, the doc seems in advance if the main build still does not support Mistral with tools :

The Zed Assistant comes pre-configured with several Mistral models (codestral-latest, mistral-large-latest, mistral-medium-latest, mistral-small-latest, open-mistral-nemo, and open-codestral-mamba). All the default models support tool use. If you wish to use alternate models or customize their parameters, you can do so by adding the following to your Zed settings.json:

vlebert avatar May 21 '25 08:05 vlebert

It's not in the release changelogs (preview or stable) so probably just not released yet.

jipiboily avatar May 21 '25 12:05 jipiboily

This went out with today's Zed Preview v0.188.x https://github.com/zed-industries/zed/releases/tag/v0.188.0-pre

In general, things in main are released on Wednesday into Preview. Then the following week Preview becomes stable.

We ship docs immediately to reflect current main, as we do not have a fancier system such that all docs sections reflect the version(s) in which they became available.

notpeter avatar May 21 '25 17:05 notpeter

Thanks for the release, the details about release cycle!

Also, what a great timing with devstral release! :)

And thanks to the Zed for an AMAZING editor! ❤

jipiboily avatar May 21 '25 17:05 jipiboily