Skip to content

fix(openai): pin HTTPX-compatible SDK versions - #488

Merged
smurching merged 1 commit into
mainfrom
codex/fix-openai-httpx2-typing
Aug 31, 2026
Merged

fix(openai): pin HTTPX-compatible SDK versions#488
smurching merged 1 commit into
mainfrom
codex/fix-openai-httpx2-typing

Conversation

@smurching

Copy link
Copy Markdown
Collaborator

Summary

  • constrain openai to the HTTPX-based 2.x release line
  • constrain openai-agents to the matching pre-0.21 release line
  • document why the bounds must move together

Why

OpenAI 3 migrated its transport types from httpx to httpx2. databricks-openai supplies custom httpx clients, so unconstrained dependency resolution caused ty to report incompatible client, request, and response types.

Testing

Using the Databricks PyPI proxy (https://pypi-proxy.cloud.databricks.com/simple/), the environment resolved openai==2.54.0, openai-agents==0.20.0, and httpx==0.28.1.

  • ty check --output-format github
  • ruff check --output-format github
  • ruff format --check --diff
  • python -m pytest tests/unit_tests/ -q — 213 passed

@smurching
smurching merged commit ec5a348 into main Aug 31, 2026
50 checks passed
@smurching
smurching deleted the codex/fix-openai-httpx2-typing branch August 31, 2026 22:40
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.

2 participants