openai-python
openai-python copied to clipboard
The official Python library for the OpenAI API
To fix the async API hang issue during message sending, allow setting a `sock_read` timeout to prevent program unresponsiveness from incomplete transmissions.
### Describe the bug Hello I am trying to integrate the whisper API into my Flask app. However I get the following error when I input the received file from...
### Describe the bug I asked the to return the response in JSON type in the chatGPT prompt. But it returns always in a raw_text manner inside ```{"message":{"role":"assistant","content":``` How can...
### Describe the bug Azure OpenAI API will return in some cases ``` {"error":{"message":"The response was filtered due to the prompt triggering Azure OpenAI’s content management policy. Please modify your...
### Describe the bug API Error on OpenAI when calling in the visual studio code. I don't know how to fix this. raise error.APIConnectionError( openai.error.APIConnectionError: Error communicating with OpenAI: HTTPSConnectionPool(host='api.openai.com',...
### Describe the feature or improvement you're requesting Want a logic to retry API if sock_read on stream is not working in
* Adds support for Dall-E on Azure * API is async so we have to poll * Adds `OPENAI_API_VERSION` environment variable
Methods of Audio package are not passing arguments to `cls.__prepare_request`. This prevents to override the configuration of the client from the method. Before: ```python @classmethod def transcribe( cls, model, file,...
By default, the Requests library use the proxy settings from the environment variable HTTPS_PROXY. It has higher priority than the "proxies" setting in the session, which may lead to confusing...