qwen 3 max 9 23
Browse files
app.py
CHANGED
|
@@ -1749,6 +1749,11 @@ AVAILABLE_MODELS = [
|
|
| 1749 |
"id": "qwen3-max-preview",
|
| 1750 |
"description": "Qwen3 Max Preview model via DashScope International API"
|
| 1751 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1752 |
{
|
| 1753 |
"name": "Sonoma Dusk Alpha",
|
| 1754 |
"id": "openrouter/sonoma-dusk-alpha",
|
|
@@ -1762,7 +1767,7 @@ AVAILABLE_MODELS = [
|
|
| 1762 |
]
|
| 1763 |
|
| 1764 |
# Default model selection
|
| 1765 |
-
DEFAULT_MODEL_NAME = "Qwen3-
|
| 1766 |
DEFAULT_MODEL = None
|
| 1767 |
for _m in AVAILABLE_MODELS:
|
| 1768 |
if _m.get("name") == DEFAULT_MODEL_NAME:
|
|
@@ -1894,6 +1899,12 @@ def get_inference_client(model_id, provider="auto"):
|
|
| 1894 |
api_key=os.getenv("DASHSCOPE_API_KEY"),
|
| 1895 |
base_url="https://dashscope.aliyuncs.com/compatible-mode/v1",
|
| 1896 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1897 |
elif model_id == "openrouter/sonoma-dusk-alpha":
|
| 1898 |
# Use OpenRouter client for Sonoma Dusk Alpha model
|
| 1899 |
return OpenAI(
|
|
|
|
| 1749 |
"id": "qwen3-max-preview",
|
| 1750 |
"description": "Qwen3 Max Preview model via DashScope International API"
|
| 1751 |
},
|
| 1752 |
+
{
|
| 1753 |
+
"name": "Qwen3-Max-2025-09-23",
|
| 1754 |
+
"id": "qwen3-max-2025-09-23",
|
| 1755 |
+
"description": "Qwen3-Max-2025-09-23 model - latest flagship model via Alibaba Cloud DashScope API"
|
| 1756 |
+
},
|
| 1757 |
{
|
| 1758 |
"name": "Sonoma Dusk Alpha",
|
| 1759 |
"id": "openrouter/sonoma-dusk-alpha",
|
|
|
|
| 1767 |
]
|
| 1768 |
|
| 1769 |
# Default model selection
|
| 1770 |
+
DEFAULT_MODEL_NAME = "Qwen3-Max-2025-09-23"
|
| 1771 |
DEFAULT_MODEL = None
|
| 1772 |
for _m in AVAILABLE_MODELS:
|
| 1773 |
if _m.get("name") == DEFAULT_MODEL_NAME:
|
|
|
|
| 1899 |
api_key=os.getenv("DASHSCOPE_API_KEY"),
|
| 1900 |
base_url="https://dashscope.aliyuncs.com/compatible-mode/v1",
|
| 1901 |
)
|
| 1902 |
+
elif model_id == "qwen3-max-2025-09-23":
|
| 1903 |
+
# Use DashScope OpenAI client for Qwen3-Max-2025-09-23 model
|
| 1904 |
+
return OpenAI(
|
| 1905 |
+
api_key=os.getenv("DASHSCOPE_API_KEY"),
|
| 1906 |
+
base_url="https://dashscope.aliyuncs.com/compatible-mode/v1",
|
| 1907 |
+
)
|
| 1908 |
elif model_id == "openrouter/sonoma-dusk-alpha":
|
| 1909 |
# Use OpenRouter client for Sonoma Dusk Alpha model
|
| 1910 |
return OpenAI(
|