Spaces:
Runtime error
Runtime error
Upload sync_hf.py
Browse files- scripts/sync_hf.py +3 -0
scripts/sync_hf.py
CHANGED
|
@@ -1346,6 +1346,9 @@ class OpenClawFullSync:
|
|
| 1346 |
tg_ch["dmPolicy"] = "open"
|
| 1347 |
tg_ch["allowFrom"] = ["*"]
|
| 1348 |
tg_ch["configWrites"] = True
|
|
|
|
|
|
|
|
|
|
| 1349 |
print("[SYNC] Set channels.telegram: dmPolicy=open, allowFrom=[*]")
|
| 1350 |
|
| 1351 |
removed_keys = _strip_retired_tier_eval_keys(data)
|
|
|
|
| 1346 |
tg_ch["dmPolicy"] = "open"
|
| 1347 |
tg_ch["allowFrom"] = ["*"]
|
| 1348 |
tg_ch["configWrites"] = True
|
| 1349 |
+
if TELEGRAM_API_BASE:
|
| 1350 |
+
tg_ch["apiRoot"] = TELEGRAM_API_BASE.rstrip("/")
|
| 1351 |
+
print(f"[SYNC] Set channels.telegram.apiRoot = {tg_ch['apiRoot']}")
|
| 1352 |
print("[SYNC] Set channels.telegram: dmPolicy=open, allowFrom=[*]")
|
| 1353 |
|
| 1354 |
removed_keys = _strip_retired_tier_eval_keys(data)
|