Skip to content

build(deps): pin openai==2.33.0 in uv.lock#28088

Merged
mateo-berri merged 1 commit into
litellm_internal_stagingfrom
litellm_/sharp-mclaren-d88974
May 16, 2026
Merged

build(deps): pin openai==2.33.0 in uv.lock#28088
mateo-berri merged 1 commit into
litellm_internal_stagingfrom
litellm_/sharp-mclaren-d88974

Conversation

@yuneng-berri

Copy link
Copy Markdown
Collaborator

Summary

Pins openai back to 2.33.0 in uv.lock (single file, 3 lines: version + sdist hash + wheel hash). Within the existing pyproject.toml range openai>=2.20.0,<3.0.0 — no constraint change.

Why

openai 2.34.0 began rejecting an explicitly-passed empty-string api_key at client construction — openai.OpenAI(api_key="") now raises OpenAIError before any request is made, instead of accepting it and only failing on a real call.

tests/local_testing/test_exceptions.py::test_exception_with_headers (and test_exception_bubbling_up, the Perplexity exception test) deliberately construct the client with api_key="" because the network call is mocked — the key value was never meant to matter. When uv.lock floated openai 2.33.0 → 2.36.0 (a side effect of #27557 regenerating the lock; nothing required 2.36), these tests started failing at construction time with Missing credentials ... OPENAI_API_KEY.

Resolver dry-run confirmed nothing in the dependency graph needs >2.33 — only the openai line moved across all 399 packages.

Scope / longer-term

Temporary stopgap to unblock CI. The durable fix is a one-line test change (pass a dummy non-empty key, since the request is mocked), which would let the pin be re-relaxed. Tracked for follow-up.

Test plan

  • uv sync --frozen now installs openai==2.33.0
  • tests/local_testing/test_exceptions.py::test_exception_with_headers and related cases construct the client and pass without test-code changes

openai 2.34.0 began rejecting an explicitly-passed empty-string api_key
at client construction (raises OpenAIError before any request), which
broke tests/local_testing/test_exceptions.py::test_exception_with_headers
and related cases after uv.lock floated openai 2.33.0 -> 2.36.0.

Pin back to 2.33.0 (within the existing pyproject >=2.20.0,<3.0.0 range)
as a temporary stopgap; longer-term fix to follow.
@greptile-apps

greptile-apps Bot commented May 16, 2026

Copy link
Copy Markdown
Contributor

No reviewable files after applying ignore patterns.

@codecov

codecov Bot commented May 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@mateo-berri mateo-berri merged commit fbb39ef into litellm_internal_staging May 16, 2026
116 checks passed
@mateo-berri mateo-berri deleted the litellm_/sharp-mclaren-d88974 branch May 16, 2026 21:49
fzowl pushed a commit to fzowl/litellm that referenced this pull request Jun 24, 2026
openai 2.34.0 began rejecting an explicitly-passed empty-string api_key
at client construction (raises OpenAIError before any request), which
broke tests/local_testing/test_exceptions.py::test_exception_with_headers
and related cases after uv.lock floated openai 2.33.0 -> 2.36.0.

Pin back to 2.33.0 (within the existing pyproject >=2.20.0,<3.0.0 range)
as a temporary stopgap; longer-term fix to follow.
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.

3 participants