Closed
Description
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
Currently, the APIClient classes allow for custom timeout, custom headers, custom max_retries, to be easily passed in as parameters.
The only way to pass in custom SSL certs are by one of these two options:
- Setting the
SSL_CERT_FILE
environment variable. This causes issues with async calls. - Passing in a custom
http_client
. This causes inconsistencies, and is unnecessarily complicated when handling both Sync and Async clients through a 3rd party library like langchain.
Instead, verify
should be an argument that can be passed in just like timeout
or max_retries
.
PR #1205 fixes this issue.
To Reproduce
- Try to use custom SSL certs.
- Note the difficulty in doing so.
- Merge in fix: make verify a client parameter (openai#1204) #1205 to make the task simple.
Code snippets
No response
OS
Ubuntu 20.04.5 LTS
Python version
Python v.3.11.6
Library version
openai v1.13.3