Spaces:
Running
Running
add qwen3 coder plus 9 23
Browse files
app.py
CHANGED
|
@@ -1653,6 +1653,11 @@ AVAILABLE_MODELS = [
|
|
| 1653 |
"id": "qwen3-coder-30b-a3b-instruct",
|
| 1654 |
"description": "Qwen3-Coder-30B-A3B-Instruct model for advanced code generation via Alibaba Cloud DashScope API"
|
| 1655 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1656 |
{
|
| 1657 |
"name": "Cohere Command-A Reasoning 08-2025",
|
| 1658 |
"id": "CohereLabs/command-a-reasoning-08-2025",
|
|
@@ -1739,7 +1744,7 @@ AVAILABLE_MODELS = [
|
|
| 1739 |
]
|
| 1740 |
|
| 1741 |
# Default model selection
|
| 1742 |
-
DEFAULT_MODEL_NAME = "
|
| 1743 |
DEFAULT_MODEL = None
|
| 1744 |
for _m in AVAILABLE_MODELS:
|
| 1745 |
if _m.get("name") == DEFAULT_MODEL_NAME:
|
|
@@ -1835,6 +1840,12 @@ def get_inference_client(model_id, provider="auto"):
|
|
| 1835 |
api_key=os.getenv("DASHSCOPE_API_KEY"),
|
| 1836 |
base_url="https://dashscope.aliyuncs.com/compatible-mode/v1",
|
| 1837 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1838 |
elif model_id == "gpt-5":
|
| 1839 |
# Use Poe (OpenAI-compatible) client for GPT-5 model
|
| 1840 |
return OpenAI(
|
|
|
|
| 1653 |
"id": "qwen3-coder-30b-a3b-instruct",
|
| 1654 |
"description": "Qwen3-Coder-30B-A3B-Instruct model for advanced code generation via Alibaba Cloud DashScope API"
|
| 1655 |
},
|
| 1656 |
+
{
|
| 1657 |
+
"name": "Qwen3-Coder-Plus-2025-09-23",
|
| 1658 |
+
"id": "qwen3-coder-plus-2025-09-23",
|
| 1659 |
+
"description": "Qwen3-Coder-Plus-2025-09-23 model - latest advanced code generation model via Alibaba Cloud DashScope API"
|
| 1660 |
+
},
|
| 1661 |
{
|
| 1662 |
"name": "Cohere Command-A Reasoning 08-2025",
|
| 1663 |
"id": "CohereLabs/command-a-reasoning-08-2025",
|
|
|
|
| 1744 |
]
|
| 1745 |
|
| 1746 |
# Default model selection
|
| 1747 |
+
DEFAULT_MODEL_NAME = "Qwen3-Coder-Plus-2025-09-23"
|
| 1748 |
DEFAULT_MODEL = None
|
| 1749 |
for _m in AVAILABLE_MODELS:
|
| 1750 |
if _m.get("name") == DEFAULT_MODEL_NAME:
|
|
|
|
| 1840 |
api_key=os.getenv("DASHSCOPE_API_KEY"),
|
| 1841 |
base_url="https://dashscope.aliyuncs.com/compatible-mode/v1",
|
| 1842 |
)
|
| 1843 |
+
elif model_id == "qwen3-coder-plus-2025-09-23":
|
| 1844 |
+
# Use DashScope OpenAI client for Qwen3-Coder-Plus-2025-09-23 model
|
| 1845 |
+
return OpenAI(
|
| 1846 |
+
api_key=os.getenv("DASHSCOPE_API_KEY"),
|
| 1847 |
+
base_url="https://dashscope.aliyuncs.com/compatible-mode/v1",
|
| 1848 |
+
)
|
| 1849 |
elif model_id == "gpt-5":
|
| 1850 |
# Use Poe (OpenAI-compatible) client for GPT-5 model
|
| 1851 |
return OpenAI(
|