fix: DeepSeek for the whole weekly run; move timer to Saturday
Follow-up to #43. The upgrader parent (LOOP_MODEL) and hourly supervisor (SUPERVISOR_MODEL) should also use DeepSeek V4.1 Flash, not just the report. So all three launchers and upgrader.env now default to opencode-go/deepseek-v4.1-flash (subagents already did). Also move cc-ci-upgrade-all.timer from Thu 22:00 to Sat 22:00 America/New_York, so the weekly run + the report it launches happen on the weekend and avoid DeepSeek's weekday peak-pricing windows (01:00-04:00 & 06:00-10:00 UTC). Verified: importing each launcher resolves deepseek-v4.1-flash; Python parses clean; 'systemd-analyze calendar' gives next elapse Sun 03:00 UTC (Sat 22:00 ET), which is a weekend. NixOS host rebuilt test->switch to apply the timer.
This commit is contained in:
@@ -22,8 +22,8 @@ Env:
|
||||
provider catalogue — see the TIER block below).
|
||||
Only affects the opencode backend (ignored for claude).
|
||||
LOOP_MODEL model flag (overrides UPGRADER_MODEL); default tracks backend+tier —
|
||||
opencode+go→opencode-go/glm-5.3-flash, opencode+zen→opencode/glm-5.2, claude→sonnet
|
||||
UPGRADER_MODEL provider/model for opencode, e.g. opencode-go/glm-5.3-flash (OpenCode Go, default),
|
||||
opencode+go→opencode-go/deepseek-v4.1-flash, opencode+zen→opencode/glm-5.2, claude→sonnet
|
||||
UPGRADER_MODEL provider/model for opencode, e.g. opencode-go/deepseek-v4.1-flash (OpenCode Go, default),
|
||||
opencode/glm-5.2 (OpenCode ZEN), or tinfoil/deepseek-v4-pro; sonnet for claude
|
||||
UPGRADER_ARGS extra args passed to /upgrade-all (e.g. "n8n ghost", "--dry-run")
|
||||
|
||||
@@ -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.3-flash", "endpoint": "https://opencode.ai/zen/go/v1/chat/completions",
|
||||
"go": {"model": "opencode-go/deepseek-v4.1-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.3-flash", "max_tokens": 8,
|
||||
body = _json.dumps({"model": (MODEL or "").split("/")[-1] or "deepseek-v4.1-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"})
|
||||
|
||||
Reference in New Issue
Block a user