chore(deps): bump openai from 1.102.0 to 2.3.0 #1402
Closed
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.
Bumps openai from 1.102.0 to 2.3.0.
Release notes
Sourced from openai's releases.
... (truncated)
Changelog
Sourced from openai's changelog.
... (truncated)
Commits
e5f93f5release: 2.3.00448788feat(api): comparison filter in/not in85a91adchore(package): bump jiter to >=0.10.0 to support Python 3.14 (#2618)d69edebrelease: 2.2.0ea3dcf8[fix] readd realtime and chat8082367fix(client): add chatkit to beta resource9ada2c7feat(api): dev day 2025 launches53f7a74release: 2.1.086aaa1dfeat(api): add support for realtime calls75a3aa4release: 2.0.1You can trigger a rebase of this PR by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)Disclaimer: Experimental PR review
Greptile Overview
Updated On: 2025-10-10 05:11:52 UTC
Summary
This PR updates the
openaipackage from 1.102.0 to 2.3.0, which includes a major version bump from v1 to v2. The upgrade also updates related dependencies:openai: 1.102.0 → 2.3.0 (major version bump)langchain-openai: 0.3.32 → 0.3.35 (now supportsopenai>=1.104.2, <3.0.0)langchain-core: 0.3.75 → 0.3.79jiter: >=0.4.0 → >=0.10.0 (for Python 3.14 support)Key Considerations
OpenAI v2.0.0 Breaking Changes:
According to the release notes, v2.0.0 includes breaking changes where
ResponseFunctionToolCallOutputItem.outputandResponseCustomToolCallOutput.outputnow returnstring | Array<ResponseInputText | ResponseInputImage | ResponseInputFile>instead of juststring.Compatibility Assessment:
The Langfuse OpenAI integration code (
langfuse/openai.py) does not directly reference these breaking change types. The integration wraps OpenAI methods at a high level and handles responses generically through__dict__access patterns, which should be resilient to these type changes.Test Coverage:
The test suite (
tests/test_openai.py) has comprehensive coverage including streaming, async, function calls, tool calls, structured outputs, embeddings, and the new Responses API.Recommendations
langchain-openai0.3.35 properly supports OpenAI 2.x (it explicitly allowsopenai<3.0.0)Confidence Score: 4/5
langchain-openaipackage was also updated to explicitly support OpenAI v2.x. The main risk is runtime behavior changes that may not be caught without executing the test suite.Important Files Changed
File Analysis
openaifrom 1.102.0 to 2.3.0 and related dependencies; includes major version bump with breaking changesSequence Diagram
sequenceDiagram participant D as Dependabot participant L as poetry.lock participant O as openai (1.102.0→2.3.0) participant LC as langchain-openai (0.3.32→0.3.35) participant LF as langfuse/openai.py D->>L: Update openai dependency L->>O: Bump to v2.3.0 (major version) Note over O: Breaking changes in v2.0.0<br/>Response output types changed L->>LC: Update to 0.3.35 Note over LC: Now supports openai <3.0.0 L->>L: Update jiter to >=0.10.0 Note over L: Python 3.14 support Note over LF: Integration code uses generic<br/>__dict__ access patterns LF->>O: Wraps OpenAI API calls O-->>LF: Returns responses Note over LF: Should be resilient to<br/>type changes