Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions backend/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@
OPENROUTER_API_KEY = os.getenv("OPENROUTER_API_KEY")

# Council members - list of OpenRouter model identifiers
# Using free/cheaper models that work with current API credits
# Note: Free models may have rate limits - if you see 429 errors, consider using paid models
COUNCIL_MODELS = [
"openai/gpt-5.1",
"google/gemini-3-pro-preview",
"anthropic/claude-sonnet-4.5",
"x-ai/grok-4",
"mistralai/mistral-7b-instruct:free",
"openai/gpt-4o-mini",
"mistralai/mistral-7b-instruct:free", # Using twice since Llama has rate limits
]

# Chairman model - synthesizes final response
CHAIRMAN_MODEL = "google/gemini-3-pro-preview"
CHAIRMAN_MODEL = "openai/gpt-4o-mini"

# OpenRouter API endpoint
OPENROUTER_API_URL = "https://openrouter.ai/api/v1/chat/completions"
Expand Down
6 changes: 6 additions & 0 deletions backend/openrouter.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ async def query_model(
'reasoning_details': message.get('reasoning_details')
}

except httpx.HTTPStatusError as e:
# Only print errors that aren't rate limits (429) or payment issues (402)
# These are expected for free models and will be handled gracefully
if e.response.status_code not in [429, 402]:
print(f"Error querying model {model}: {e}")
return None
except Exception as e:
print(f"Error querying model {model}: {e}")
return None
Expand Down
9 changes: 9 additions & 0 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.