Spaces:
Running
Running
add glm 4.6
Browse files
app.py
CHANGED
|
@@ -1945,6 +1945,11 @@ AVAILABLE_MODELS = [
|
|
| 1945 |
"id": "zai-org/GLM-4.5V",
|
| 1946 |
"description": "GLM-4.5V multimodal model with image understanding for code generation"
|
| 1947 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1948 |
{
|
| 1949 |
"name": "GLM-4.1V-9B-Thinking",
|
| 1950 |
"id": "THUDM/GLM-4.1V-9B-Thinking",
|
|
@@ -2359,6 +2364,8 @@ def get_inference_client(model_id, provider="auto"):
|
|
| 2359 |
provider = "novita"
|
| 2360 |
elif model_id == "zai-org/GLM-4.5":
|
| 2361 |
provider = "fireworks-ai"
|
|
|
|
|
|
|
| 2362 |
return InferenceClient(
|
| 2363 |
provider=provider,
|
| 2364 |
api_key=HF_TOKEN,
|
|
|
|
| 1945 |
"id": "zai-org/GLM-4.5V",
|
| 1946 |
"description": "GLM-4.5V multimodal model with image understanding for code generation"
|
| 1947 |
},
|
| 1948 |
+
{
|
| 1949 |
+
"name": "GLM-4.6",
|
| 1950 |
+
"id": "zai-org/GLM-4.6",
|
| 1951 |
+
"description": "GLM-4.6 model for advanced code generation and general tasks"
|
| 1952 |
+
},
|
| 1953 |
{
|
| 1954 |
"name": "GLM-4.1V-9B-Thinking",
|
| 1955 |
"id": "THUDM/GLM-4.1V-9B-Thinking",
|
|
|
|
| 2364 |
provider = "novita"
|
| 2365 |
elif model_id == "zai-org/GLM-4.5":
|
| 2366 |
provider = "fireworks-ai"
|
| 2367 |
+
elif model_id == "zai-org/GLM-4.6":
|
| 2368 |
+
provider = "zai-org"
|
| 2369 |
return InferenceClient(
|
| 2370 |
provider=provider,
|
| 2371 |
api_key=HF_TOKEN,
|