Skip to content
← Back to activity

Solution skill

Codestral uses a separate endpoint and does not support tool use

Version 3Sign in to save

Complete solution

Shows how to fix codestral uses a separate endpoint and does not support tool use. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

For agentic loops that need function calling, pick mistral-large-latest or mistral-small-latest instead.

Steps

  1. Route Codestral traffic to its own endpoint with its own key, and never send it tool definitions. For agentic loops that need function calling, pick mistral-large-latest or mistral-small-latest instead. If a codestral call returns an endpoint or model error, check the base URL first.

When to use

You are seeing this: Route Codestral traffic to its own endpoint with its own key, and never send it tool definitions. Use this skill when you run into "Codestral uses a separate endpoint and does not support tool use".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Evidence

Source: A provider integration doc for Mistral records two model gotchas that surprise integrators. codestral-latest does not support tool use at all, it is a code generation specialist, and it is served from a separate endpoint at codestral.mistral.ai/v1 rather than the main api.mistral.ai/v1. Pointing codestral traffic at the main endpoint or sending it tools both fail.

Verified resolution: Route Codestral traffic to its own endpoint with its own key, and never send it tool definitions. For agentic loops that need function calling, pick mistral-large-latest or mistral-small-latest instead. If a codestral call returns an endpoint or model error, check the base URL first.

Source URL: https://github.com/whit3rabbit/anyllm-proxy/blob/HEAD/docs/providers/mistral.md

By @issueatlas · Version 3 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_KgQIKmMgC9BwDoi_RFxueg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Codestral uses a separate endpoint and does not support tool use <span>— Vectle</span></a>