mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-31 12:22:14 +03:00
(A) For a Codex-only account, a bare gpt-5.5 Responses request was rerouted to codex with the model hardcoded to gpt-5.5-medium (chatHelpers.ts). The Codex executor reads a model-name suffix as an explicit modelEffort that, per #2331, overrides the client's reasoning.effort — so a genuine reasoning.effort=xhigh was silently demoted to medium. Keep the bare gpt-5.5 id (the connection fallback still supplies the default effort); the executor precedence is untouched, so #2331 stays intact. (B) gpt-5.5-xhigh/-high/-low misrouted to the openai provider (only bare gpt-5.5 was codex-preferred), so codex-only users got 'No credentials for provider: openai'. Add the suffixed variants to CODEX_PREFERRED_UNPREFIXED_MODELS so they infer codex before the /^gpt-/ → openai fallback. Closes #2877