Skip to content

Chore(deps): update openai requirement from <3,>=2.38.0 to >=2.40.0,<3 - #1895

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/openai-gte-2.40.0-and-lt-3
Closed

Chore(deps): update openai requirement from <3,>=2.38.0 to >=2.40.0,<3#1895
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/openai-gte-2.40.0-and-lt-3

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 2, 2026

Copy link
Copy Markdown
Contributor

Updates the requirements on openai to permit the latest version.

Release notes

Sourced from openai's releases.

v2.40.0

2.40.0 (2026-06-01)

Full Changelog: v2.39.0...v2.40.0

Features

  • api: Add Amazon Bedrock Responses support

Bug Fixes

  • api: allow setting bedrock api keys on the client directly (4d5bfde)
Changelog

Sourced from openai's changelog.

2.40.0 (2026-06-01)

Full Changelog: v2.39.0...v2.40.0

Features

  • api: Add Amazon Bedrock Responses support

Bug Fixes

  • api: allow setting bedrock api keys on the client directly (4d5bfde)

2.39.0 (2026-06-01)

Full Changelog: v2.38.0...v2.39.0

Features

  • api: workload identity in audit logs, additional_tools item in responses, fix ActionSearch.query to be optional. (ab60d7a)

2.38.0 (2026-05-21)

Full Changelog: v2.37.0...v2.38.0

Features

  • api: api update (33d1d01)
  • api: manual updates (a21700a)
  • api: update OpenAPI spec or Stainless config (00265c5)

Chores

  • api: docs updates (ee10152)
  • check release PR custom code sync (2638779)
  • remove release automation trigger (bd6eea5)
  • trigger release automation (f62d082)

2.37.0 (2026-05-13)

Full Changelog: v2.36.0...v2.37.0

Features

  • api: add service_tier parameter to responses compact method (625827c)
  • internal/types: support eagerly validating pydantic iterators (7e527bc)
  • Remove unnecessary client_id when using workload identity provider for auth (c39ea8d)

Bug Fixes

... (truncated)

Commits
  • a28a3f6 Merge pull request #3352 from openai/release-please--branches--main--changes-...
  • db6ccaf Update CHANGELOG.md
  • 2264f70 release: 2.40.0
  • 4d5bfde fix(api): allow setting bedrock api keys on the client directly
  • ccef143 Merge pull request #3326 from openai/codex/bedrock-responses-review
  • a50ff0a Fix Bedrock with_options overrides
  • fdf4901 codegen metadata
  • e4bccc7 release: 2.39.0
  • 268de68 feat(api): workload identity in audit logs, additional_tools item in response...
  • 8be32d3 [codex] Add Amazon Bedrock provider support
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will 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 version will 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 dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [openai](https://github.com/openai/openai-python) to permit the latest version.
- [Release notes](https://github.com/openai/openai-python/releases)
- [Changelog](https://github.com/openai/openai-python/blob/main/CHANGELOG.md)
- [Commits](openai/openai-python@v2.38.0...v2.40.0)

---
updated-dependencies:
- dependency-name: openai
  dependency-version: 2.40.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Jun 2, 2026
@claude

claude Bot commented Jun 2, 2026

Copy link
Copy Markdown

Code Review: Dependabot openai Bump (>=2.38.0 to >=2.40.0)

Overview

Routine Dependabot bump of the openai Python SDK lower bound from >=2.38.0,<3 to >=2.40.0,<3 in requirements/base.txt. Single-line diff; the <3 ceiling is unchanged.


What is changing (2.38.0 to 2.40.0)

Version Notable changes
2.39.0 Workload identity in audit logs; additional_tools item in Responses; ActionSearch.query made optional
2.40.0 Amazon Bedrock Responses support; fix for setting Bedrock API keys directly on the client

None of these affect the surfaces OpenContracts uses (chat completions, embeddings, Responses API calls through pydantic-ai).


Assessment

Code quality / correctness

  • Single-line change; no logic affected.
  • The existing comment (pydantic-ai 1.x requires >=2.11.0) remains accurate — 2.40.0 satisfies that constraint.
  • The <3 upper bound is unchanged, preventing major-version breakage.

Security

  • No CVEs listed in the 2.39.0 or 2.40.0 changelogs.
  • The Bedrock additions are entirely additive and behind a distinct client path — no impact on existing code.

Compatibility

  • pydantic-ai v1.x requires openai >=2.11.0; 2.40.0 satisfies this comfortably.
  • The CLAUDE.md pitfall about PydanticAIAgent instructions= vs system_prompt= is unaffected by this SDK bump.

Risk level: Low. All changes between 2.38.0 and 2.40.0 are additive features and minor bug fixes.


Suggestions

  • No blocking issues — safe to merge.
  • Optional: a quick smoke-test of any agent/LLM tool path after merging would confirm the pydantic-ai / openai integration is unaffected (unlikely to regress given the <3 ceiling keeps us within the same SDK generation).

@dependabot @github

dependabot Bot commented on behalf of github Jun 4, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #1914.

@dependabot dependabot Bot closed this Jun 4, 2026
@dependabot
dependabot Bot deleted the dependabot/pip/openai-gte-2.40.0-and-lt-3 branch June 4, 2026 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants