mirror of
https://github.com/jasonxu114514/opencode2api.git
synced 2026-12-05 08:02:53 +00:00
Upstream now rejects anonymous free-tier requests unless they look like real agent traffic: stream:true plus the core agent tools (bash/edit/glob/grep/read), returning 403 FreeTierError otherwise. Normalize the anonymous-lane wire body (force stream:true, inject minimal definitions for any missing core tools) and collapse the SSE stream back into the single JSON document non-streaming clients asked for. Authenticated tiers are untouched.