四盘
commited on
Commit
·
57a1bb1
1
Parent(s):
16fb478
add ling-flash
Browse files
app.py
CHANGED
|
@@ -1704,8 +1704,8 @@ CRITICAL: For imported spaces that lack anycoder attribution, you MUST add it as
|
|
| 1704 |
# Available models
|
| 1705 |
AVAILABLE_MODELS = [
|
| 1706 |
{
|
| 1707 |
-
"name": "SiliconFlow
|
| 1708 |
-
"id": "
|
| 1709 |
"description": "InclusionAI Ling-flash-2.0 model for code generation and general tasks"
|
| 1710 |
},
|
| 1711 |
{
|
|
@@ -2135,7 +2135,7 @@ def get_inference_client(model_id, provider="auto"):
|
|
| 2135 |
api_key=api_key,
|
| 2136 |
base_url=base_url,
|
| 2137 |
)
|
| 2138 |
-
elif model_id == "
|
| 2139 |
# Use SiliconFlow (OpenAI-compatible) client for inclusionAI/Ling-flash-2.0 model
|
| 2140 |
api_key = os.getenv("SILICONFLOW_API_KEY")
|
| 2141 |
if not api_key:
|
|
|
|
| 1704 |
# Available models
|
| 1705 |
AVAILABLE_MODELS = [
|
| 1706 |
{
|
| 1707 |
+
"name": "SiliconFlow: inclusionAI/Ling-flash-2.0",
|
| 1708 |
+
"id": "inclusionAI/Ling-flash-2.0",
|
| 1709 |
"description": "InclusionAI Ling-flash-2.0 model for code generation and general tasks"
|
| 1710 |
},
|
| 1711 |
{
|
|
|
|
| 2135 |
api_key=api_key,
|
| 2136 |
base_url=base_url,
|
| 2137 |
)
|
| 2138 |
+
elif model_id == "inclusionAI/Ling-flash-2.0":
|
| 2139 |
# Use SiliconFlow (OpenAI-compatible) client for inclusionAI/Ling-flash-2.0 model
|
| 2140 |
api_key = os.getenv("SILICONFLOW_API_KEY")
|
| 2141 |
if not api_key:
|