mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-17 20:52:15 +03:00
stripGpt5ReasoningWhenTools gated on provider+model-name alone, so once #7242 routes the public GPT-5.6 family to /v1/responses (targetFormat "openai-responses", which natively supports tools + reasoning), the two PRs would compose into the worst of both worlds: routed to the endpoint that supports reasoning, but reasoning stripped anyway. Pass the request's already-resolved targetFormat into the guard and skip the strip whenever it is not going out over /chat/completions, so the guard tracks the actual upstream surface instead of a model-name list that would need updating for every future GPT-5.x family. Reported-by: Tech Solution (@techsolutionmta) (https://github.com/decolua/9router/issues/2540)