relax websockets upper bound from <16 to <17#3013
Merged
seratch merged 1 commit intoopenai:mainfrom Apr 23, 2026
Merged
Conversation
websockets 16.0 introduces no breaking changes affecting this SDK. The only backwards-incompatible change in 16.0 is dropping Python 3.9 support, which this project already doesn't support (requires-python>=3.10). All APIs used by the SDK — websockets.connect, ClientConnection, ConnectionClosed/OK/Error, websockets.asyncio.client — are present in websockets 16.x with identical interfaces and module paths. The <16 cap currently prevents projects already pinned to websockets==16.x from adopting openai-agents>=0.14.0 without a global websockets downgrade.
seratch
requested changes
Apr 23, 2026
| if: steps.changes.outputs.run != 'true' | ||
| run: echo "Skipping tests for non-code changes." | ||
|
|
||
| tests-websockets-v16: |
Member
There was a problem hiding this comment.
We don't want to add this additional test just for this dependency version range
Contributor
Author
There was a problem hiding this comment.
Yes that make total sense, will remove the commit, I wanted to have a way to "prove" it works with version 16
e72c314 to
3091ba4
Compare
seratch
approved these changes
Apr 23, 2026
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
The `websockets<16` upper bound introduced in 0.14.0 is overly conservative. websockets 16.0 has no breaking changes that affect this SDK, and the cap is creating unnecessary dependency conflicts for projects already on `websockets==16.x`.
Analysis
APIs used by this SDK
All websockets usage is in `src/agents/realtime/openai_realtime.py` and `src/agents/voice/`:
websockets 16.0 breaking changes
From the official changelog, websockets 16.0 has one backwards-incompatible change:
`openai-agents` already declares `requires-python = ">=3.10"`, so this does not apply.
Every API listed above is present in websockets 16.0 with identical module paths and method signatures — confirmed against the 16.0 source.
Test compatibility
The existing test suite requires zero changes to run against websockets 16.0:
Changes
Impact
Projects pinned to `websockets==16.x` currently cannot adopt `openai-agents>=0.14.0` without a global websockets downgrade. This change unblocks them.