Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New https release is breaking openai sdk while intitiating Async client #1908

Closed
1 task done
Alavi1412 opened this issue Nov 28, 2024 · 1 comment
Closed
1 task done
Labels
bug Something isn't working

Comments

@Alavi1412
Copy link

Confirm this is an issue with the Python library and not an underlying OpenAI API

  • This is an issue with the Python library

Describe the bug

Recently, my codebase started to fail while initiating AsyncOpenAi. While debugging, I noticed AsyncOpenAI is using a version of httpx that accept keyword proxies but in the latest version (httpx 0.28.0), this keyword argument is removed from __init__.

To fix it, I manually limited installed httpx to use 0.27.2 which solves the problem but OpenAI SDK should have applied already that limitation on httpx allowed versions.

To Reproduce

  1. Install openai v1.30.1 with latest version of httpx (0.28)
  2. Create a new instance of AsyncOpenAI
  3. You should see the error at the instance creation.

Code snippets

No response

OS

Ubuntu

Python version

3.9

Library version

openai v1.30.1

@Alavi1412 Alavi1412 added the bug Something isn't working label Nov 28, 2024
@RobertCraigie
Copy link
Collaborator

This has already been fixed in the latest release! #1902

@RobertCraigie RobertCraigie closed this as not planned Won't fix, can't repro, duplicate, stale Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants