Spaces:
Running
Running
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
app.py
CHANGED
|
@@ -425,13 +425,13 @@ if __name__ == "__main__":
|
|
| 425 |
demo.launch()
|
| 426 |
'''
|
| 427 |
|
| 428 |
-
# Available models
|
| 429 |
MODELS = [
|
| 430 |
-
"google/
|
| 431 |
-
"
|
| 432 |
-
"
|
| 433 |
-
"
|
| 434 |
-
"
|
| 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):
|