Skip to content

Add GPT-5.6 Responses API support#134

Merged
esokullu merged 3 commits into
mainfrom
codex/gpt-5-6-responses
Jul 16, 2026
Merged

Add GPT-5.6 Responses API support#134
esokullu merged 3 commits into
mainfrom
codex/gpt-5-6-responses

Conversation

@esokullu

Copy link
Copy Markdown
Owner

Summary

  • Route official OpenAI GPT-5.6 models through /v1/responses so reasoning and function tools work together.
  • Add Terra, Sol, Luna, and the GPT-5.6 alias to provider settings, with gpt-5.6-terra as the default.
  • Preserve stateless Responses output items across tool loops, including streaming text, tool calls, usage, and refusal text.
  • Keep older OpenAI models, custom OpenAI endpoints, and other OpenAI-compatible providers on Chat Completions.
  • Mirror the implementation across Chrome and Firefox and update provider documentation.

Why

GPT-5.6 Terra rejects function tools combined with reasoning_effort on /v1/chat/completions. Setting reasoning effort to none avoids the error by disabling reasoning, but loses the behavior the model was selected for. The Responses API supports reasoning and tools together, so the adapter now uses that endpoint only for official GPT-5.6 requests.

User impact

Users can select the GPT-5.6 family and use tools with reasoning enabled. Existing providers, older OpenAI models, configured custom endpoints, and customized provider settings retain their previous behavior.

Validation

  • git diff --check origin/main...HEAD
  • node test/run.js: 848 passed; one pre-existing repository version check remains (package.json 23.3.7 vs newest changelog entry 23.3.6)
  • npm run test:security: 60/60 passed

@esokullu
esokullu marked this pull request as ready for review July 15, 2026 23:57

@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: 561508f5ed

ℹ️ 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 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 address that feedback".

Comment thread src/chrome/src/providers/openai.js
@esokullu

Copy link
Copy Markdown
Owner Author

@codex pls review

@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: c58647a772

ℹ️ 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 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 address that feedback".

Comment thread src/chrome/src/providers/openai.js

Copy link
Copy Markdown
Owner Author

@codex pls review

@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: c58647a772

ℹ️ 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 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 address that feedback".

Comment thread src/chrome/src/agent/agent.js Outdated

Copy link
Copy Markdown
Owner Author

@codex pls review

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 0f78c7706b

ℹ️ 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 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 address that feedback".

@esokullu
esokullu merged commit 4e4d453 into main Jul 16, 2026
4 checks passed
@esokullu
esokullu deleted the codex/gpt-5-6-responses branch July 16, 2026 02:04
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.

1 participant