From 61b47ce36699e35b80cab619e7c6807f5c750445 Mon Sep 17 00:00:00 2001 From: WhoamiI00 Date: Wed, 12 Aug 2026 14:00:10 +0530 Subject: [PATCH] fix(gui): correct the Codestral API key note in the Add Model form The Add Model form told users that Codestral "requires a different API key from other Mistral models". That is not what Continue actually does: the Mistral provider autodetects which kind of key it was given and picks the matching endpoint. `autodetectApiKeyType` probes api.mistral.ai/v1/models with the supplied key - a 401 means it is a Codestral key, anything else means it is a Plateforme key - and rewrites apiBase accordingly. That path runs whenever no explicit apiBase is set, which is exactly the case for models added through this form: `models.codestral` sets only title, model and contextLength. So a standard Mistral key does work, as reported. Reword the note to describe the real behaviour rather than asserting a requirement that is not enforced. Fixes #13049 --- gui/src/forms/AddModelForm.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gui/src/forms/AddModelForm.tsx b/gui/src/forms/AddModelForm.tsx index d64b5cf26f5..4453632c7ca 100644 --- a/gui/src/forms/AddModelForm.tsx +++ b/gui/src/forms/AddModelForm.tsx @@ -315,8 +315,9 @@ export function AddModelForm({ onDone }: AddModelFormProps) {

Codestral API key

- Note that codestral requires a different API key from other - Mistral models + Codestral accepts either a Mistral API key or a + Codestral-specific key. Continue detects which one you've + entered and uses the matching endpoint.