Skip to content

Normalize model family detection for prefixed slugs - #5067

Closed
nornagon-openai wants to merge 1 commit into
mainfrom
nornagon/codex/fix-openrouter-model_reasoning_effort-config-cw0wjk
Closed

nornagon-openai wants to merge 1 commit into
mainfrom
nornagon/codex/fix-openrouter-model_reasoning_effort-config-cw0wjk

Conversation

@nornagon-openai

@nornagon-openai nornagon-openai commented Oct 10, 2025 •

Copy link
Copy Markdown
Contributor
  • ensure prefixed model slugs (like OpenRouter variants) resolve to families that allow reasoning support
  • cover the OpenRouter GPT-5 Codex slug with a regression test

Fixes #5033


https://chatgpt.com/codex/tasks/task_i_68e95a3e9248832c9e96561b391755d0

Normalize model family detection to handle prefixed slugs so OpenRouter models retain reasoning effort.
@nornagon-openai nornagon-openai added the codex Label used by connector to tag PRs that have been reviewed by Codex label Oct 10, 2025 — with ChatGPT Codex Connector
@dylan-hurd-oai

dylan-hurd-oai commented Oct 16, 2025 •

Copy link
Copy Markdown
Contributor

Documenting that I've seen this PR! It feels very reasonable, but given how central this logic is to harness behavior, and the lack of specific tests, I'm going to take a little bit of extra time to think about potential side effects.

@dylan-hurd-oai dylan-hurd-oai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Picking this back up! I think this is going to require a more complex fix, since openai_model_info::get_model_info relies on an exact match of the slug, which this current approach leaves as the non-normalized version.

@github-actions github-actions Bot locked and limited conversation to collaborators Nov 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

codex Label used by connector to tag PRs that have been reviewed by Codex

Projects

None yet

Development

Successfully merging this pull request may close these issues.

openrouter model_reasoning_effort config not work

3 participants