Add Codestral Provider

This commit is contained in:
Alishahryar1
2026-05-23 19:09:22 -07:00
parent fbb1d6586d
commit a4d7d76040
18 changed files with 369 additions and 23 deletions
+27
View File
@@ -145,6 +145,18 @@ FIELDS: tuple[ConfigFieldSpec, ...] = (
"Mistral La Plateforme (api.mistral.ai); Experiment plan is free tier with rate limits."
),
),
ConfigFieldSpec(
"CODESTRAL_API_KEY",
"Codestral API Key",
"providers",
"secret",
settings_attr="codestral_api_key",
secret=True,
description=(
"Mistral Codestral endpoint (codestral.mistral.ai); distinct from Mistral "
"La Plateforme ``MISTRAL_API_KEY``. See Mistral docs for coding/FIM domains."
),
),
ConfigFieldSpec(
"DEEPSEEK_API_KEY",
"DeepSeek API Key",
@@ -287,6 +299,15 @@ FIELDS: tuple[ConfigFieldSpec, ...] = (
secret=True,
advanced=True,
),
ConfigFieldSpec(
"CODESTRAL_PROXY",
"Codestral Proxy",
"providers",
"secret",
settings_attr="codestral_proxy",
secret=True,
advanced=True,
),
ConfigFieldSpec(
"LMSTUDIO_PROXY",
"LM Studio Proxy",
@@ -792,6 +813,12 @@ FIELDS: tuple[ConfigFieldSpec, ...] = (
"smoke",
advanced=True,
),
ConfigFieldSpec(
"FCC_SMOKE_MODEL_MISTRAL_CODESTRAL",
"Smoke Mistral Codestral Model",
"smoke",
advanced=True,
),
ConfigFieldSpec(
"FCC_SMOKE_MODEL_DEEPSEEK",
"Smoke DeepSeek Model",
+1
View File
@@ -61,6 +61,7 @@ function providerName(providerId) {
const names = {
nvidia_nim: "NVIDIA NIM",
open_router: "OpenRouter",
mistral_codestral: "Mistral Codestral",
deepseek: "DeepSeek",
lmstudio: "LM Studio",
llamacpp: "llama.cpp",