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

Limits argument can never get passed down? #1790

Open
1 task done
dmakhervaks opened this issue Oct 10, 2024 · 0 comments
Open
1 task done

Limits argument can never get passed down? #1790

dmakhervaks opened this issue Oct 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@dmakhervaks
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

It seems as though when initializing an openAI client like so:

since you cannot pass in the limits argument as a parameter, it will always default to the DEFAULT value here:

if limits is not None:

openai.AsyncClient(())

To Reproduce

  1. Initialize an openai client like so: openai.AsyncClient(())
  2. Try to pass in 'limits' argument or modify the 'http_client' to have custom Limits.
  3. This will not actually be propagated

Code snippets

openai.AsyncClient(())

OS

linux

Python version

3.9.12

Library version

1.50.0

@dmakhervaks dmakhervaks added the bug Something isn't working label Oct 10, 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

1 participant