openai-python icon indicating copy to clipboard operation
openai-python copied to clipboard

The official Python library for the OpenAI API

Results 204 openai-python issues
Sort by recently updated
recently updated
newest added

### Describe the bug According to [the docs](https://platform.openai.com/docs/api-reference/completions/create#completions/create-logit_bias), `logit_bias` defaults to `null`, but if we pass `None` to this parameter we get `openai.error.InvalidRequestError` > openai.error.InvalidRequestError: None is not of type...

bug

### Describe the bug [The documentation](https://platform.openai.com/docs/api-reference/completions/create#completions/create-frequency_penalty) says > Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the...

bug

### Describe the feature or improvement you're requesting People often need to calculate the number of tokens in the `prompt` and `suffix` parameters of the `completions` endpoint or in the...

### Describe the bug I use nginx proxy api_base “https://api.openai.com” on my server : “http://myserverip:port” and get a error msg: My server is can connect https://api.openai.com and i use this...

bug

### Describe the bug Request timed out: HTTPSConnectionPool(host='api.openai.com', port=443): Max retries exceeded with url: /v1/completions (Caused by ConnectTimeoutError(, 'Connection to api.openai.com timed out. (connect timeout=600)')) ### To Reproduce Request timed...

bug

### Describe the bug When running `openai api fine_tunes.create ...` the streaming cli response is continually interrupted. A bit of investigation revealed that the underlying exception is `Invalid chunk encoding...

bug

### Describe the feature or improvement you're requesting It would be nice to upload audio files with the CLI tool and get the API response. Thank you for considering. ###...

enhancement

### Describe the bug unlike `text-davinci-003` model, `gpt-3.5-turbo` model fails when using stop='\n'. maybe it would be backend problem but it would be good to have front-end translates '\n' into...

bug

### Describe the bug Unable to install openai using pip for latest version. Works fine with `pip3 install openai==0.27.0` ### To Reproduce `pip3 install openai` Output: Looking in indexes: https://pypi.org/simple,...

bug