fix: use GLM 5.3 Flash for weekly agents

This commit is contained in:
notplants
2026-11-23 17:10:00 +00:00
parent d2de7bb0f0
commit 695d8a2bff
3 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -52,7 +52,7 @@ LOG_DIR = os.environ.get("LOG_DIR", "/srv/cc-ci/.cc-ci-logs")
BACKEND = os.environ.get("LOOP_BACKEND", os.environ.get("UPGRADER_BACKEND", "opencode"))
TIER = os.environ.get("LOOP_TIER", os.environ.get("UPGRADER_TIER", "go"))
_TIER_CFG = {
"go": {"model": "opencode-go/glm-5.2", "endpoint": "https://opencode.ai/zen/go/v1/chat/completions",
"go": {"model": "opencode-go/glm-5.3-flash", "endpoint": "https://opencode.ai/zen/go/v1/chat/completions",
"auth": "opencode-go", "label": "OpenCode Go"},
"zen": {"model": "opencode/glm-5.2", "endpoint": "https://opencode.ai/zen/v1/chat/completions",
"auth": "opencode", "label": "OpenCode ZEN"},
@@ -406,7 +406,7 @@ def _limit_retry_after():
key = _limit_key()
if not key:
return 0
body = _json.dumps({"model": (MODEL or "").split("/")[-1] or "glm-5.2", "max_tokens": 8,
body = _json.dumps({"model": (MODEL or "").split("/")[-1] or "glm-5.3-flash", "max_tokens": 8,
"messages": [{"role": "user", "content": "hi"}]}).encode()
req = _ureq.Request(LIMIT_ENDPOINT, data=body, method="POST",
headers={"Authorization": "Bearer " + key, "content-type": "application/json"})