mirror of
https://gitcode.com/JianFeeeee/ModelRouter.git
synced 2026-09-20 00:48:00 +00:00
OpenCode Go (and other strict OpenAI-compatible upstreams) reject a non-streaming request that carries stream_options with "stream_options should be set along with stream". The adapter attached it unconditionally, so every non-stream call through the opencode adapter failed on those upstreams. Verified against OpenCode Go: 25/25 configured models now pass a real completion through the gateway (they previously 400'd). Test: TestOpenCodeStreamOptionsOnlyWhenStreaming (absent when non-streaming, include_usage present when streaming).