From 8e73f9ffdf2ea13328b2879b988ca0487c38db7c Mon Sep 17 00:00:00 2001 From: Krishna Kumar Date: Wed, 31 Dec 2025 09:11:49 -0600 Subject: [PATCH] Fix OpenRouter model identifiers for LLM Council Updated to valid model names that exist on OpenRouter: - google/gemini-2.5-flash (was gemini-2.5-flash-preview-05-20) - anthropic/claude-3.5-haiku (was claude-sonnet-4 - 402 error) - x-ai/grok-3-mini (was grok-3-fast) --- backend/config.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/config.py b/backend/config.py index 6762b5f..6aba045 100644 --- a/backend/config.py +++ b/backend/config.py @@ -11,13 +11,13 @@ OPENROUTER_API_KEY = os.getenv("OPENROUTER_API_KEY") # Council members - list of OpenRouter model identifiers COUNCIL_MODELS = [ "openai/gpt-4o", - "google/gemini-2.5-flash-preview-05-20", - "anthropic/claude-sonnet-4", - "x-ai/grok-3-fast", + "google/gemini-2.5-flash", + "anthropic/claude-3.5-haiku", + "x-ai/grok-3-mini", ] # Chairman model - synthesizes final response -CHAIRMAN_MODEL = "google/gemini-2.5-flash-preview-05-20" +CHAIRMAN_MODEL = "google/gemini-2.5-flash" # OpenRouter API endpoint OPENROUTER_API_URL = "https://openrouter.ai/api/v1/chat/completions"