mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-02 21:32:10 +03:00
Remove unsupported Gemini schema fields including vendor-prefixed `x-` properties so translated tool definitions avoid rejected keywords. Emit an empty `content` field with the initial assistant role delta to keep OpenAI-compatible streaming output consistent for clients that expect content on the first chunk. Also force undici's fetch whenever a dispatcher is provided and treat `onRequestStart` version mismatches as fatal instead of falling back to native fetch, preventing broken proxy requests under mixed undici versions.