Spaces:
Sleeping
Sleeping
fix: add required models array to zhipu provider config
Browse files- scripts/sync_hf.py +5 -0
scripts/sync_hf.py
CHANGED
|
@@ -477,6 +477,11 @@ class OpenClawFullSync:
|
|
| 477 |
"baseUrl": "https://open.bigmodel.cn/api/paas/v4",
|
| 478 |
"apiKey": ZHIPU_API_KEY,
|
| 479 |
"api": "openai-completions",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 480 |
}
|
| 481 |
print("[SYNC] Set Zhipu AI provider")
|
| 482 |
if not providers:
|
|
|
|
| 477 |
"baseUrl": "https://open.bigmodel.cn/api/paas/v4",
|
| 478 |
"apiKey": ZHIPU_API_KEY,
|
| 479 |
"api": "openai-completions",
|
| 480 |
+
"models": [
|
| 481 |
+
{"id": "glm-4-flash", "name": "GLM-4 Flash"},
|
| 482 |
+
{"id": "glm-4-plus", "name": "GLM-4 Plus"},
|
| 483 |
+
{"id": "glm-4-long", "name": "GLM-4 Long"},
|
| 484 |
+
]
|
| 485 |
}
|
| 486 |
print("[SYNC] Set Zhipu AI provider")
|
| 487 |
if not providers:
|