Spaces:
Running
Running
fix: update Zhipu AI model IDs to current API lineup
Browse filesReplace deprecated glm-4-flash/plus/long with actual available models:
glm-4.5-air, glm-4.5, glm-4.6, glm-4.7, glm-5
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- scripts/sync_hf.py +6 -4
scripts/sync_hf.py
CHANGED
|
@@ -74,7 +74,7 @@ GATEWAY_TOKEN = os.environ.get("GATEWAY_TOKEN", "huggingclaw")
|
|
| 74 |
# Default model for new conversations (infer from provider if not set)
|
| 75 |
OPENCLAW_DEFAULT_MODEL = os.environ.get("OPENCLAW_DEFAULT_MODEL") or (
|
| 76 |
"openai/gpt-5-nano" if OPENAI_API_KEY
|
| 77 |
-
else "zhipu/glm-4-
|
| 78 |
else "openrouter/openai/gpt-oss-20b:free"
|
| 79 |
)
|
| 80 |
|
|
@@ -478,9 +478,11 @@ class OpenClawFullSync:
|
|
| 478 |
"apiKey": ZHIPU_API_KEY,
|
| 479 |
"api": "openai-completions",
|
| 480 |
"models": [
|
| 481 |
-
{"id": "glm-4-
|
| 482 |
-
{"id": "glm-4
|
| 483 |
-
{"id": "glm-4
|
|
|
|
|
|
|
| 484 |
]
|
| 485 |
}
|
| 486 |
print("[SYNC] Set Zhipu AI provider")
|
|
|
|
| 74 |
# Default model for new conversations (infer from provider if not set)
|
| 75 |
OPENCLAW_DEFAULT_MODEL = os.environ.get("OPENCLAW_DEFAULT_MODEL") or (
|
| 76 |
"openai/gpt-5-nano" if OPENAI_API_KEY
|
| 77 |
+
else "zhipu/glm-4.5-air" if ZHIPU_API_KEY
|
| 78 |
else "openrouter/openai/gpt-oss-20b:free"
|
| 79 |
)
|
| 80 |
|
|
|
|
| 478 |
"apiKey": ZHIPU_API_KEY,
|
| 479 |
"api": "openai-completions",
|
| 480 |
"models": [
|
| 481 |
+
{"id": "glm-4.5-air", "name": "GLM-4.5 Air"},
|
| 482 |
+
{"id": "glm-4.5", "name": "GLM-4.5"},
|
| 483 |
+
{"id": "glm-4.6", "name": "GLM-4.6"},
|
| 484 |
+
{"id": "glm-4.7", "name": "GLM-4.7"},
|
| 485 |
+
{"id": "glm-5", "name": "GLM-5"},
|
| 486 |
]
|
| 487 |
}
|
| 488 |
print("[SYNC] Set Zhipu AI provider")
|