mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-15 03:32:21 +03:00
OpenCode upstreams (e.g. kimi-k2.6 via opencode-go) return 400 "Extra inputs are not permitted, field: 'client_metadata'" — an OpenAI-Codex/Claude-CLI passthrough field with no equivalent upstream. The DefaultExecutor strip only covers cerebras/mistral, and OpencodeExecutor extends BaseExecutor directly, so nothing removed it on this path. Strip it in OpencodeExecutor.transformRequest. Regression guard: tests/unit/opencode-strip-client-metadata-1442.test.ts. Reported-by: yanpaing007 (https://github.com/decolua/9router/issues/1442)