mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-04 22:32:12 +03:00
* feat(codex): echo requested effort-suffixed model id in Responses payloads (#3697) Codex CLI compatibility shim: the Responses API response.created/ response.in_progress/response.completed payloads now carry a `model` field (previously absent), and for Codex-CLI-originated requests it echoes the client-requested effort-suffixed model id (e.g. gpt-5.5-xhigh) instead of the bare upstream id (gpt-5.5), so the Codex CLI status line/model button shows the active reasoning effort. - openai-responses.ts translator threads the upstream model into the Responses event objects (additive, omitted when unknown). - New isCodexOriginatedHeaders() (codexIdentity.ts) reuses PR #3481's originator/User-Agent detection, header-based so it still fires when a combo routes codex/gpt-5.5-xhigh to a non-codex upstream. - chatCore's existing opt-in #1311 echoModel pipeline now also fires automatically for Codex clients on the Responses API, regardless of the echoRequestedModelName setting. - responseModelEcho.ts now also rewrites the nested response.model field the Responses API uses (previously only top-level model). - /v1/models keeps returning models: [] for Codex (unchanged, #3481). Regression guard: tests/unit/codex-effort-model-echo-3697.test.ts. Closes #3697 * chore(merge): re-sync with release/v3.8.47 (restore CHANGELOG, keep own bullet) * chore(merge): re-sync with release/v3.8.47; move changelog bullet to changelog.d fragment (merge-storm proof)
1.3 KiB
1.3 KiB
- feat(codex): Codex CLI compatibility shim — the Responses API
response.created/response.in_progress/response.completedpayloads now carry amodelfield (previously absent), and for Codex-CLI-originated requests it echoes the client-requested, effort-suffixed model id (e.g.gpt-5.5-xhigh) instead of the bare upstream id (gpt-5.5), so the Codex CLI status line/model button shows the active reasoning effort (#3697).openaiToOpenAIResponsesResponse(open-sse/translator/response/openai-responses.ts) now threads the upstream model into the Responses event objects; a newisCodexOriginatedHeaders()(open-sse/config/codexIdentity.ts, reusing PR #3481'soriginator/User-Agent detection) makes chatCore's existing opt-inechoRequestedModelName(#1311) model-echo pipeline fire automatically for Codex clients regardless of the setting, detected by request headers so it still applies whencodex/gpt-5.5-xhighis routed through a combo to a non-codex upstream;echoModelInObject/echoModelInSseLine(open-sse/services/responseModelEcho.ts) now also rewrite the nestedresponse.modelfield the Responses API uses./v1/modelsstill returnsmodels: []for Codex (unchanged). Regression guard:tests/unit/codex-effort-model-echo-3697.test.ts.