openai-python
openai-python copied to clipboard
Limits argument can never get passed down?
Confirm this is an issue with the Python library and not an underlying OpenAI API
- [X] 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:
https://github.com/openai/openai-python/blob/aa6818997468b753546d55365d8142e2bb1c6640/src/openai/_base_client.py#L1127
openai.AsyncClient(())
To Reproduce
- Initialize an openai client like so: openai.AsyncClient(())
- Try to pass in 'limits' argument or modify the 'http_client' to have custom Limits.
- This will not actually be propagated
Code snippets
openai.AsyncClient(())
OS
linux
Python version
3.9.12
Library version
1.50.0