mirror of
https://gitcode.com/JianFeeeee/ModelRouter.git
synced 2026-09-20 08:57:57 +00:00
zen fingerprints clients via UA + x-opencode-client/session/request/project headers; requests without them are routed as anonymous and fail with a single-chunk network_error stream (tools+stream) or 503 Endpoint is unavailable (non-stream), which the adapter laundered into empty-but-valid replies. Derive per-request session/request ids from build_headers meta (sandbox has no os/math), bump UA to the real client format, map zen reasoning field to reasoning_content, and set stream_options.include_usage.