chore(deps): bump openai from 1.102.0 to 2.5.0 #1410
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.5.0.
Release notes
Sourced from openai's releases.
... (truncated)
Changelog
Sourced from openai's changelog.
... (truncated)
Commits
513ae76release: 2.5.0 (#2694)ebf3221release: 2.4.0e043d7bchore: fix dangling comment25cbb74feat(api): Add support for gpt-4o-transcribe-diarize on audio/transcriptions ...8cdfd06codegen metadatad5c6443codegen metadatab20a9e7chore(internal): detect missing future annotations with ruffe5f93f5release: 2.3.00448788feat(api): comparison filter in/not in85a91adchore(package): bump jiter to >=0.10.0 to support Python 3.14 (#2618)You 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-20 05:22:53 UTC
Summary
This PR upgrades the OpenAI SDK from v1.102.0 to v2.5.0, a major version bump that includes several improvements and dependency updates.
Key Changes:
langchain-coreupdated from 0.3.75 → 0.3.79langchain-openaiupdated from 0.3.32 → 0.3.35 (explicitly adds openai v2 support)jiterversion bumped from 0.4.0 → 0.10.0 (required for OpenAI v2)httpx-aiohttpversion requirement updated to 0.1.9Compatibility Assessment:
The Langfuse integration code in
langfuse/openai.pyuses version detection (_is_openai_v1()) that checks for OpenAI >= 1.0.0, which means it treats v2.x the same as v1.x. The code importsopenai._types.NotGivenwhich is an internal API, but this appears to be stable across v1 and v2 based on OpenAI's changelog.The
langchain-openaidependency was updated to 0.3.35, which explicitly supports OpenAI SDK 1.104.2 to <3.0.0, confirming compatibility with v2.x.Confidence Score: 4/5
openai._types.NotGivenand the lack of CI test runs on this PR mean there's a small risk of runtime issuesImportant Files Changed
File Analysis
Sequence Diagram
sequenceDiagram participant DP as Dependabot participant PL as poetry.lock participant OAI as OpenAI SDK participant LC as langchain-openai participant LF as Langfuse Integration DP->>PL: Update openai: 1.102.0 → 2.5.0 DP->>PL: Update jiter: >=0.4.0 → >=0.10.0 DP->>PL: Update langchain-openai: 0.3.32 → 0.3.35 DP->>PL: Update langchain-core: 0.3.75 → 0.3.79 Note over OAI,LC: langchain-openai 0.3.35<br/>adds openai >=1.104.2,<3.0.0 support LF->>OAI: Check version with _is_openai_v1() OAI-->>LF: Returns True (v2.5.0 >= v1.0.0) Note over LF: Uses OPENAI_METHODS_V1<br/>Same instrumentation for v1 and v2 LF->>OAI: Import NotGiven from openai._types Note over LF,OAI: Internal API, stable across v1→v2