mirror of
https://github.com/jasonxu114514/opencode2api.git
synced 2026-12-05 08:02:53 +00:00
The free tier only accepts agent-shaped traffic and checks it against the official CLI's prompt. Every shaped free-model body now carries that base prompt plus the <env> block (model, working directory, platform, UTC date) and the built-in skill listing. - v1 /zen uses the 1.x tool names; /inference and /zen/go use the 2.x names. - Chat folds system and developer messages into one leading system message, Anthropic prepends to system (string or text block), and Responses prepends instructions. - A body whose system content already carries the marker is passed through, so the prompt is never duplicated. System One is untouched. - Key-tier free models receive the same shaping; paid models and Go-tier paid traffic are unchanged.