Shivangsinha commited on
Commit
d3f2b55
·
verified ·
1 Parent(s): f41fcbb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -29,9 +29,11 @@ class BasicAgent:
29
  if not openrouter_api_key:
30
  raise ValueError("OPENROUTER_API_KEY environment variable not set in Space Secrets.")
31
 
32
- # Using Qwen3 Coder: 262,000 token context window, built for AI Agents
 
 
33
  self.model = LiteLLMModel(
34
- model_id="openrouter/qwen/qwen3-coder:free", # <-- The correct, active endpoint
35
  api_key=openrouter_api_key,
36
  )
37
 
 
29
  if not openrouter_api_key:
30
  raise ValueError("OPENROUTER_API_KEY environment variable not set in Space Secrets.")
31
 
32
+ # The double "openrouter/" is not a typo!
33
+ # The first tells LiteLLM to connect to OpenRouter.
34
+ # The second tells OpenRouter to use its dynamic, load-balanced free pool.
35
  self.model = LiteLLMModel(
36
+ model_id="openrouter/openrouter/free",
37
  api_key=openrouter_api_key,
38
  )
39