milwright commited on
Commit
18fef2d
·
1 Parent(s): 0a378f4

Fix invalid OpenRouter model IDs

Browse files

- Replace openai/gpt-4o-nano with openai/gpt-4o-mini
- Replace mistralai/mistral-medium with mistralai/mistral-7b-instruct
- Replace google/gemma-3-27b-it with meta-llama/llama-3.1-8b-instruct
- All models now use valid OpenRouter API endpoints

Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -425,13 +425,13 @@ if __name__ == "__main__":
425
  demo.launch()
426
  '''
427
 
428
- # Available models
429
  MODELS = [
430
- "google/gemma-3-27b-it", # Open-source, sustainable option
431
- "google/gemini-2.0-flash-001", # Fast, reliable, general tasks
432
- "mistralai/mistral-medium", # Good for technical topics
433
- "openai/gpt-4o-nano", # Balanced performance and cost
434
- "anthropic/claude-3.5-haiku" # Complex reasoning and analysis
435
  ]
436
 
437
  def fetch_url_content(url):
 
425
  demo.launch()
426
  '''
427
 
428
+ # Available models - Updated with valid OpenRouter model IDs
429
  MODELS = [
430
+ "google/gemini-2.0-flash-001", # Fast, reliable, general tasks
431
+ "anthropic/claude-3.5-haiku", # Complex reasoning and analysis
432
+ "openai/gpt-4o-mini", # Balanced performance and cost
433
+ "meta-llama/llama-3.1-8b-instruct", # Open-source, efficient option
434
+ "mistralai/mistral-7b-instruct" # Good for technical topics
435
  ]
436
 
437
  def fetch_url_content(url):