From 20528003fce020879254993ce9c36d6924e6acc5 Mon Sep 17 00:00:00 2001 From: Mr-Macharia Date: Fri, 11 Sep 2026 16:57:56 +0300 Subject: [PATCH] fix(ai): replace decommissioned Groq model IDs All four Groq models in the config had been retired by Groq, so every request failed with `model_not_found` and the provider was unusable. Verified against the live Groq API: the previous default `meta-llama/llama-4-scout-17b-16e-instruct` returns model_not_found, while each replacement returns HTTP 200 from /v1/chat/completions. Model IDs double as i18n keys (`settingsModal.ai.models.groq.`, consumed in AISettings.tsx), so the label/hint/category/badge strings are updated across all 7 locales in both `src/i18n/locales/` and `public/locales/`. Without these the dropdown would render raw key paths instead of model names. Note: the non-English strings are machine-translated and would benefit from a native-speaker review. --- README.md | 2 +- public/locales/de/translation.json | 35 +++++++++++++------------- public/locales/en/translation.json | 27 ++++++++++---------- public/locales/es/translation.json | 37 ++++++++++++++-------------- public/locales/fr/translation.json | 37 ++++++++++++++-------------- public/locales/ja/translation.json | 37 ++++++++++++++-------------- public/locales/tr/translation.json | 29 +++++++++++----------- public/locales/zh/translation.json | 37 ++++++++++++++-------------- src/config/aiProviders.ts | 10 ++++---- src/i18n/locales/de/translation.json | 35 +++++++++++++------------- src/i18n/locales/en/translation.json | 27 ++++++++++---------- src/i18n/locales/es/translation.json | 37 ++++++++++++++-------------- src/i18n/locales/fr/translation.json | 37 ++++++++++++++-------------- src/i18n/locales/ja/translation.json | 37 ++++++++++++++-------------- src/i18n/locales/tr/translation.json | 29 +++++++++++----------- src/i18n/locales/zh/translation.json | 37 ++++++++++++++-------------- 16 files changed, 238 insertions(+), 252 deletions(-) diff --git a/README.md b/README.md index beba84ac..f44b0eb9 100644 --- a/README.md +++ b/README.md @@ -196,7 +196,7 @@ Flowpilot sits directly in the editor. Describe a system, paste source code, upl | Google Gemini | `gemini-2.5-flash-lite` | Free tier available, fast, browser-safe | | OpenAI | `gpt-5-mini` | Best reasoning for complex architectures | | Anthropic Claude | `claude-sonnet-4-6` | Excellent code and system understanding | -| Groq | `meta-llama/llama-4-scout-17b-16e-instruct`| Fastest open-source inference available | +| Groq | `openai/gpt-oss-120b` | Fastest open-source inference available | | Mistral | `mistral-large-latest` | Strong European privacy-first alternative | | NVIDIA NIM | `meta/llama-4-maverick-17b-128e-instruct` | Enterprise GPU inference | | Cerebras | `gpt-oss-120b` | Ultra-fast on WSE-3 silicon | diff --git a/public/locales/de/translation.json b/public/locales/de/translation.json index dd3b6117..8a32ec0c 100644 --- a/public/locales/de/translation.json +++ b/public/locales/de/translation.json @@ -1025,28 +1025,27 @@ } }, "groq": { - "meta-llama/llama-4-scout-17b-16e-instruct": { - "label": "Llama 4 Scout", - "hint": "Free tier · Very fast", - "category": "Speed", - "badge": "Free" + "openai/gpt-oss-120b": { + "label": "GPT-OSS 120B", + "hint": "Leistungsfähigstes Modell · Kostenlose Stufe", + "category": "Reasoning", + "badge": "Gratis" }, - "meta-llama/llama-4-maverick-17b-128e-instruct": { - "label": "Llama 4 Maverick", - "hint": "More capable · Free tier", - "category": "Speed", - "badge": "Free" + "openai/gpt-oss-20b": { + "label": "GPT-OSS 20B", + "hint": "Schneller · Kostenlose Stufe", + "category": "Geschwindigkeit", + "badge": "Gratis" }, - "qwen/qwen3-32b": { - "label": "Qwen 3 32B", - "hint": "Advanced reasoning · Tool use", + "qwen/qwen3.8-27b": { + "label": "Qwen3.8 27B", + "hint": "Fortgeschrittenes Reasoning · Tool-Nutzung", "category": "Reasoning" }, - "llama-3.3-70b-versatile": { - "label": "Llama 3.3 70B Versatile", - "hint": "Versatile model", - "category": "Performance", - "badge": "Performance" + "groq/compound": { + "label": "Compound", + "hint": "Groq Agentensystem · Integrierte Tools", + "category": "Leistung" } }, "nvidia": { diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json index b0b7559d..d2d7a4fe 100644 --- a/public/locales/en/translation.json +++ b/public/locales/en/translation.json @@ -1104,28 +1104,27 @@ } }, "groq": { - "meta-llama/llama-4-scout-17b-16e-instruct": { - "label": "Llama 4 Scout", - "hint": "Free tier · Very fast", - "category": "Speed", + "openai/gpt-oss-120b": { + "label": "GPT-OSS 120B", + "hint": "Most capable · Free tier", + "category": "Reasoning", "badge": "Free" }, - "meta-llama/llama-4-maverick-17b-128e-instruct": { - "label": "Llama 4 Maverick", - "hint": "More capable · Free tier", + "openai/gpt-oss-20b": { + "label": "GPT-OSS 20B", + "hint": "Faster · Free tier", "category": "Speed", "badge": "Free" }, - "qwen/qwen3-32b": { - "label": "Qwen3 32B", + "qwen/qwen3.8-27b": { + "label": "Qwen3.8 27B", "hint": "Advanced reasoning · Tool use", "category": "Reasoning" }, - "llama-3.3-70b-versatile": { - "label": "Llama 3.3 70B Versatile", - "hint": "Versatile model", - "category": "Performance", - "badge": "Performance" + "groq/compound": { + "label": "Compound", + "hint": "Groq agentic system · Built-in tools", + "category": "Performance" } }, "nvidia": { diff --git a/public/locales/es/translation.json b/public/locales/es/translation.json index 160d5730..8d746768 100644 --- a/public/locales/es/translation.json +++ b/public/locales/es/translation.json @@ -1025,28 +1025,27 @@ } }, "groq": { - "meta-llama/llama-4-scout-17b-16e-instruct": { - "label": "Llama 4 Scout", - "hint": "Free tier · Very fast", - "category": "Speed", - "badge": "Free" + "openai/gpt-oss-120b": { + "label": "GPT-OSS 120B", + "hint": "Más capaz · Nivel gratuito", + "category": "Razonamiento", + "badge": "Gratis" }, - "meta-llama/llama-4-maverick-17b-128e-instruct": { - "label": "Llama 4 Maverick", - "hint": "More capable · Free tier", - "category": "Speed", - "badge": "Free" + "openai/gpt-oss-20b": { + "label": "GPT-OSS 20B", + "hint": "Más rápido · Nivel gratuito", + "category": "Velocidad", + "badge": "Gratis" }, - "qwen/qwen3-32b": { - "label": "Qwen 3 32B", - "hint": "Advanced reasoning · Tool use", - "category": "Reasoning" + "qwen/qwen3.8-27b": { + "label": "Qwen3.8 27B", + "hint": "Razonamiento avanzado · Uso de herramientas", + "category": "Razonamiento" }, - "llama-3.3-70b-versatile": { - "label": "Llama 3.3 70B Versatile", - "hint": "Versatile model", - "category": "Performance", - "badge": "Performance" + "groq/compound": { + "label": "Compound", + "hint": "Sistema agéntico de Groq · Herramientas integradas", + "category": "Rendimiento" } }, "nvidia": { diff --git a/public/locales/fr/translation.json b/public/locales/fr/translation.json index 2b2b240d..5e0a3fd6 100644 --- a/public/locales/fr/translation.json +++ b/public/locales/fr/translation.json @@ -1025,28 +1025,27 @@ } }, "groq": { - "meta-llama/llama-4-scout-17b-16e-instruct": { - "label": "Llama 4 Scout", - "hint": "Free tier · Very fast", - "category": "Speed", - "badge": "Free" + "openai/gpt-oss-120b": { + "label": "GPT-OSS 120B", + "hint": "Le plus performant · Offre gratuite", + "category": "Raisonnement", + "badge": "Gratuit" }, - "meta-llama/llama-4-maverick-17b-128e-instruct": { - "label": "Llama 4 Maverick", - "hint": "More capable · Free tier", - "category": "Speed", - "badge": "Free" + "openai/gpt-oss-20b": { + "label": "GPT-OSS 20B", + "hint": "Plus rapide · Offre gratuite", + "category": "Vitesse", + "badge": "Gratuit" }, - "qwen/qwen3-32b": { - "label": "Qwen 3 32B", - "hint": "Advanced reasoning · Tool use", - "category": "Reasoning" + "qwen/qwen3.8-27b": { + "label": "Qwen3.8 27B", + "hint": "Raisonnement avancé · Utilisation d'outils", + "category": "Raisonnement" }, - "llama-3.3-70b-versatile": { - "label": "Llama 3.3 70B Versatile", - "hint": "Versatile model", - "category": "Performance", - "badge": "Performance" + "groq/compound": { + "label": "Compound", + "hint": "Système agentique Groq · Outils intégrés", + "category": "Performance" } }, "nvidia": { diff --git a/public/locales/ja/translation.json b/public/locales/ja/translation.json index 23d26220..1465000d 100644 --- a/public/locales/ja/translation.json +++ b/public/locales/ja/translation.json @@ -1025,28 +1025,27 @@ } }, "groq": { - "meta-llama/llama-4-scout-17b-16e-instruct": { - "label": "Llama 4 Scout", - "hint": "Free tier · Very fast", - "category": "Speed", - "badge": "Free" + "openai/gpt-oss-120b": { + "label": "GPT-OSS 120B", + "hint": "最高性能 · 無料枠", + "category": "推論", + "badge": "無料" }, - "meta-llama/llama-4-maverick-17b-128e-instruct": { - "label": "Llama 4 Maverick", - "hint": "More capable · Free tier", - "category": "Speed", - "badge": "Free" + "openai/gpt-oss-20b": { + "label": "GPT-OSS 20B", + "hint": "より高速 · 無料枠", + "category": "速度", + "badge": "無料" }, - "qwen/qwen3-32b": { - "label": "Qwen 3 32B", - "hint": "Advanced reasoning · Tool use", - "category": "Reasoning" + "qwen/qwen3.8-27b": { + "label": "Qwen3.8 27B", + "hint": "高度な推論 · ツール利用", + "category": "推論" }, - "llama-3.3-70b-versatile": { - "label": "Llama 3.3 70B Versatile", - "hint": "Versatile model", - "category": "Performance", - "badge": "Performance" + "groq/compound": { + "label": "Compound", + "hint": "Groq エージェントシステム · ツール内蔵", + "category": "パフォーマンス" } }, "nvidia": { diff --git a/public/locales/tr/translation.json b/public/locales/tr/translation.json index 8155085e..a40c55a8 100644 --- a/public/locales/tr/translation.json +++ b/public/locales/tr/translation.json @@ -1024,28 +1024,27 @@ } }, "groq": { - "meta-llama/llama-4-scout-17b-16e-instruct": { - "label": "Llama 4 Scout", - "hint": "Ücretsiz katman · Çok hızlı", - "category": "Hız", + "openai/gpt-oss-120b": { + "label": "GPT-OSS 120B", + "hint": "En yetenekli · Ücretsiz katman", + "category": "Akıl yürütme", "badge": "Ücretsiz" }, - "meta-llama/llama-4-maverick-17b-128e-instruct": { - "label": "Llama 4 Maverick", - "hint": "Daha yetenekli · Ücretsiz katman", + "openai/gpt-oss-20b": { + "label": "GPT-OSS 20B", + "hint": "Daha hızlı · Ücretsiz katman", "category": "Hız", "badge": "Ücretsiz" }, - "qwen/qwen3-32b": { - "label": "Qwen 3 32B", + "qwen/qwen3.8-27b": { + "label": "Qwen3.8 27B", "hint": "Gelişmiş akıl yürütme · Araç kullanımı", - "category": "Akıl Yürütme" + "category": "Akıl yürütme" }, - "llama-3.3-70b-versatile": { - "label": "Llama 3.3 70B Versatile", - "hint": "Çok yönlü model", - "category": "Performans", - "badge": "Performans" + "groq/compound": { + "label": "Compound", + "hint": "Groq ajan sistemi · Yerleşik araçlar", + "category": "Performans" } }, "nvidia": { diff --git a/public/locales/zh/translation.json b/public/locales/zh/translation.json index cd9e2c7d..3ddfd617 100644 --- a/public/locales/zh/translation.json +++ b/public/locales/zh/translation.json @@ -1025,28 +1025,27 @@ } }, "groq": { - "meta-llama/llama-4-scout-17b-16e-instruct": { - "label": "Llama 4 Scout", - "hint": "Free tier · Very fast", - "category": "Speed", - "badge": "Free" + "openai/gpt-oss-120b": { + "label": "GPT-OSS 120B", + "hint": "能力最强 · 免费额度", + "category": "推理", + "badge": "免费" }, - "meta-llama/llama-4-maverick-17b-128e-instruct": { - "label": "Llama 4 Maverick", - "hint": "More capable · Free tier", - "category": "Speed", - "badge": "Free" + "openai/gpt-oss-20b": { + "label": "GPT-OSS 20B", + "hint": "更快 · 免费额度", + "category": "速度", + "badge": "免费" }, - "qwen/qwen3-32b": { - "label": "Qwen 3 32B", - "hint": "Advanced reasoning · Tool use", - "category": "Reasoning" + "qwen/qwen3.8-27b": { + "label": "Qwen3.8 27B", + "hint": "高级推理 · 工具调用", + "category": "推理" }, - "llama-3.3-70b-versatile": { - "label": "Llama 3.3 70B Versatile", - "hint": "Versatile model", - "category": "Performance", - "badge": "Performance" + "groq/compound": { + "label": "Compound", + "hint": "Groq 智能体系统 · 内置工具", + "category": "性能" } }, "nvidia": { diff --git a/src/config/aiProviders.ts b/src/config/aiProviders.ts index 6e463449..e065c0c1 100644 --- a/src/config/aiProviders.ts +++ b/src/config/aiProviders.ts @@ -15,7 +15,7 @@ export const DEFAULT_MODELS: Record = { gemini: 'gemini-2.5-flash-lite', openai: 'gpt-5-mini', claude: 'claude-sonnet-4-6', - groq: 'meta-llama/llama-4-scout-17b-16e-instruct', + groq: 'openai/gpt-oss-120b', nvidia: 'meta/llama-4-maverick-17b-128e-instruct', cerebras: 'gpt-oss-120b', mistral: 'mistral-large-latest', @@ -179,10 +179,10 @@ export const PROVIDER_MODELS: Record