diff --git a/.github/workflows/sisyphus-agent.yml b/.github/workflows/sisyphus-agent.yml index 42004397a..db07008a3 100644 --- a/.github/workflows/sisyphus-agent.yml +++ b/.github/workflows/sisyphus-agent.yml @@ -152,6 +152,41 @@ jobs: "limit": { "context": 200000, "output": 64000 } } } + } | + .provider["zai-coding-plan"] = { + "name": "Z.AI Coding Plan", + "npm": "@ai-sdk/openai-compatible", + "options": { + "baseURL": "https://api.z.ai/api/paas/v4" + }, + "models": { + "glm-4.7": { + "id": "glm-4.7", + "name": "GLM 4.7", + "limit": { "context": 128000, "output": 16000 } + }, + "glm-4.6v": { + "id": "glm-4.6v", + "name": "GLM 4.6 Vision", + "limit": { "context": 128000, "output": 16000 } + } + } + } | + .provider.openai = { + "name": "OpenAI", + "npm": "@ai-sdk/openai", + "models": { + "gpt-5.2": { + "id": "gpt-5.2", + "name": "GPT-5.2", + "limit": { "context": 128000, "output": 16000 } + }, + "gpt-5.2-codex": { + "id": "gpt-5.2-codex", + "name": "GPT-5.2 Codex", + "limit": { "context": 128000, "output": 32000 } + } + } } ' "$OPENCODE_JSON" > /tmp/oc.json && mv /tmp/oc.json "$OPENCODE_JSON" @@ -287,6 +322,9 @@ jobs: ) jq --arg append "$PROMPT_APPEND" '.agents.Sisyphus.prompt_append = $append' "$OMO_JSON" > /tmp/omo.json && mv /tmp/omo.json "$OMO_JSON" + # Add categories configuration for unspecified-low to use GLM 4.7 + jq '.categories["unspecified-low"] = { "model": "zai-coding-plan/glm-4.7" }' "$OMO_JSON" > /tmp/omo.json && mv /tmp/omo.json "$OMO_JSON" + mkdir -p ~/.local/share/opencode echo "$OPENCODE_AUTH_JSON" > ~/.local/share/opencode/auth.json chmod 600 ~/.local/share/opencode/auth.json