Skip to content

fix(deps): allow OpenAI SDK 3.x - #8104

Open
Samecho wants to merge 1 commit into
google:mainfrom
Samecho:codex/openai-sdk-3-compat
Open

Samecho wants to merge 1 commit into
google:mainfrom
Samecho:codex/openai-sdk-3-compat

Conversation

@Samecho

@Samecho Samecho commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Link to Issue or Description of Change

google-adk[openai] currently caps the OpenAI SDK below 3, which blocks installation with recent versions of LiveKit Agents. This raises the cap to <4 in the openai, extensions, all, and test extras while keeping the minimum at 2.20.

Testing Plan

Unit Tests

  • I have added or updated unit tests for my change.
  • All unit tests pass locally.

The OpenAI integration and labs tests passed on Python 3.13 with SDK versions 2.54.0, 3.0.0, and 3.46.0 (296 tests each).

I ran the full Windows tox suite on Python 3.11 through 3.14 using the upstream CI dependency skip for lancedb. Each run passed more than 23,800 tests and had 88–104 failures outside the OpenAI and packaging tests. Most failures also occurred on unchanged main. The remaining SQLite and telemetry cases passed in focused reruns on both branches. Both branches resolved the same test dependencies.

Manual End-to-End (E2E) Tests

I built the ADK wheel and installed its openai extra in clean Python 3.13 and 3.14 environments alongside openai==3.46.0, livekit-agents==1.8.11, and langfuse==5.2.0. The same install failed to resolve before this change. With the new wheel, uv pip check reported compatible dependencies and all 296 OpenAI integration and labs tests passed against the installed wheel on each Python version.

To reproduce the dependency check from this checkout in a clean environment, run:

uv pip install '.[openai]' 'openai==3.46.0' 'livekit-agents==1.8.11' 'langfuse==5.2.0'
uv pip check

Checklist

  • I have read the CONTRIBUTING.md document.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have added tests that prove my fix is effective or that my feature works.
  • New and existing unit tests pass locally with my changes.
  • I have manually tested my changes end-to-end.
  • Any dependent changes have been merged and published in downstream modules.

Additional context

The constraints check reported the same differences on Windows for both this branch and main. The resolved package pins matched main for Python 3.11 through 3.15.

Prepared with Codex.

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.

Allow openai 3.x in the openai extra (currently openai>=2.20,<3)

2 participants