feat(openai): update to support GPT-5.6 and require openai>=2.45.0#491
Open
solvemproblr wants to merge 2 commits into
Open
feat(openai): update to support GPT-5.6 and require openai>=2.45.0#491solvemproblr wants to merge 2 commits into
solvemproblr wants to merge 2 commits into
Conversation
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
solvemproblr
force-pushed
the
asa/hud-1923-upgrade-openai-sdk-and-add-gpt-56-support
branch
from
July 16, 2026 22:41
912e194 to
70199e6
Compare
solvemproblr
force-pushed
the
asa/hud-1923-upgrade-openai-sdk-and-add-gpt-56-support
branch
from
July 16, 2026 22:43
70199e6 to
f34c78f
Compare
solvemproblr
force-pushed
the
asa/hud-1923-upgrade-openai-sdk-and-add-gpt-56-support
branch
from
July 16, 2026 22:58
f34c78f to
09a42c6
Compare
Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replaces the temporary
openai==2.44.0pin with an intentionalopenai>=2.45.0floor and adds GPT-5.6 support (HUD-1923).OpenAI SDK upgrade
openai==2.44.0→openai>=2.45.0. The pin was an emergency response to 2.45.0 narrowingResponseFunctionCallOutputItemListParam; this upgrade absorbs that change properly.ResponseInputTextContentParam(the content-item type every other branch offormat_openai_resultalready appends) instead of the no-longer-validResponseInputTextParam.input_textcontent item.GPT-5.6 support
OpenAIConfigdefault model:gpt-5.5→gpt-5.6(upstream alias forgpt-5.6-sol).hud evalinteractive presets: GPT-5.6 added, GPT-5.5 retained.gpt-5.6added to the native shell/apply_patch allowlist (per its model page).reasoning,text, andtool_choicepass through untyped, and openai 2.45.0 already types the new effort levels (xhigh,max) andreasoning.mode(standard/pro).Testing
uv run pyright— 0 errors on openai 2.45.0uv run pytest -q— 677 passed on Python 3.12 and 3.11uv run ruff format --check/ruff check— cleanNote
Medium Risk
Touches the core OpenAI agent path and bumps the OpenAI SDK floor, which affects all Responses API tool loops; changes are narrow (defaults, typing, empty-output guard) with test coverage.
Overview
Adds GPT-5.6 as the default OpenAI Responses agent model and surfaces it across the SDK:
OpenAIConfigand docs default togpt-5.6,hud evalgets a GPT-5.6 preset (GPT-5.5 kept), the Codex cookbook allowlist includesgpt-5.6, and the changelog documents the family and reasoning controls.Dependency:
openaimoves from a pinned2.44.0toopenai>=2.45.0, matching narrowed Responses API types for function-call outputs.Compatibility fix: Empty tool results in
format_openai_resultnow emit a singleResponseInputTextContentParaminstead of the removedResponseInputTextParam, so the API never gets an emptyoutputlist. A regression test locks that behavior.Reviewed by Cursor Bugbot for commit 912e194. Bugbot is set up for automated code reviews on this repo. Configure here.