add new model
Browse files
app.py
CHANGED
|
@@ -1625,6 +1625,11 @@ AVAILABLE_MODELS = [
|
|
| 1625 |
"name": "Qwen3 Max Preview",
|
| 1626 |
"id": "qwen3-max-preview",
|
| 1627 |
"description": "Qwen3 Max Preview model via DashScope International API"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1628 |
}
|
| 1629 |
]
|
| 1630 |
|
|
@@ -1755,6 +1760,12 @@ def get_inference_client(model_id, provider="auto"):
|
|
| 1755 |
api_key=os.getenv("DASHSCOPE_API_KEY"),
|
| 1756 |
base_url="https://dashscope.aliyuncs.com/compatible-mode/v1",
|
| 1757 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1758 |
elif model_id == "step-3":
|
| 1759 |
# Use StepFun API client for Step-3 model
|
| 1760 |
return OpenAI(
|
|
|
|
| 1625 |
"name": "Qwen3 Max Preview",
|
| 1626 |
"id": "qwen3-max-preview",
|
| 1627 |
"description": "Qwen3 Max Preview model via DashScope International API"
|
| 1628 |
+
},
|
| 1629 |
+
{
|
| 1630 |
+
"name": "Sonoma Dusk Alpha",
|
| 1631 |
+
"id": "openrouter/sonoma-dusk-alpha",
|
| 1632 |
+
"description": "OpenRouter Sonoma Dusk Alpha model with vision capabilities"
|
| 1633 |
}
|
| 1634 |
]
|
| 1635 |
|
|
|
|
| 1760 |
api_key=os.getenv("DASHSCOPE_API_KEY"),
|
| 1761 |
base_url="https://dashscope.aliyuncs.com/compatible-mode/v1",
|
| 1762 |
)
|
| 1763 |
+
elif model_id == "openrouter/sonoma-dusk-alpha":
|
| 1764 |
+
# Use OpenRouter client for Sonoma Dusk Alpha model
|
| 1765 |
+
return OpenAI(
|
| 1766 |
+
api_key=os.getenv("OPENROUTER_API_KEY"),
|
| 1767 |
+
base_url="https://openrouter.ai/api/v1",
|
| 1768 |
+
)
|
| 1769 |
elif model_id == "step-3":
|
| 1770 |
# Use StepFun API client for Step-3 model
|
| 1771 |
return OpenAI(
|