Skip to content

Strip unsupported params from gpt-6 models - #462

Merged
Erin McNulty (erin2722) merged 4 commits into
mainfrom
fix-gpt-6-in-playground
Sep 22, 2026
Merged

Erin McNulty (erin2722) merged 4 commits into
mainfrom
fix-gpt-6-in-playground

Conversation

@erin2722

Copy link
Copy Markdown
Contributor

No description provided.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 22, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-22T19:28:00.649767Z d4d18e9 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 718c7792bb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "Codex (@codex) review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "Codex (@codex) address that feedback".

"gpt-5",
&[StripTemperature, StripTopP, ForceMaxCompletionTokens],
),
("gpt-6", &[StripTemperature]),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Normalize namespaced GPT-6 model IDs

When a route uses Bedrock's namespaced OpenAI model ID (openai.gpt-6..., consistent with crates/braintrust-llm-router/src/catalog/spec.rs:55-58), this prefix does not match. prepare_provider_request passes the catalog model as the override, transform_request replaces universal.model with it, and apply_model_transforms therefore leaves temperature intact, causing the request to reach a GPT-6 endpoint with the unsupported parameter. Normalize the supported openai. namespace before matching or add an equivalent rule.

AGENTS.md reference: AGENTS.md:L11-L11

Useful? React with 👍 / 👎.

"gpt-5",
&[StripTemperature, StripTopP, ForceMaxCompletionTokens],
),
("gpt-6", &[StripTemperature]),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Add the required GPT-6 provider behavior fixture

This provider-parameter behavior change adds only the capability rule: there is no corresponding case in payloads/cases/params.ts, captured transform, or even a GPT-6 entry in the existing capability test tables. Consequently, the end-to-end path that must strip temperature is unverified, contrary to the repository's mandatory workflow for provider behavior changes; add the behavior-named payload case and capture it before landing the rule.

AGENTS.md reference: AGENTS.md:L123-L131

Useful? React with 👍 / 👎.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9ededae556

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "Codex (@codex) review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "Codex (@codex) address that feedback".

Comment on lines +66 to +69
let normalized = match lower.strip_prefix("openai.") {
Some(normalized) => normalized,
None => &lower,
};

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Normalize slash-prefixed OpenAI model IDs

When GPT-6 is routed through an OpenAI-compatible provider using an openai/gpt-6... model ID, this normalization leaves the slash-prefixed name unchanged, so get_model_transforms does not match the new GPT-6 rule and apply_model_transforms retains the unsupported temperature. This namespace is already recognized by normalize_openai_model_name and covered by the existing openai/gpt-5.4 test; reuse or extend that normalization so both slash and Bedrock dot namespaces receive the transform.

Useful? React with 👍 / 👎.

@erin2722 Erin McNulty (erin2722) changed the title Strip temperature from gpt-6 models Strip unsupported params from gpt-6 models Sep 22, 2026
@erin2722
Erin McNulty (erin2722) merged commit eb2f589 into main Sep 22, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants