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

The official Python library for the OpenAI API

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

### Describe the feature or improvement you're requesting We found it useful to have `logprobs` for completions to evaluate confidence. We would like to have access to this attribute in...

### Describe the feature or improvement you're requesting Currently, Whisper exposes avg_logprob for an entire segment. The request is to expose logprobs for each token. ```json { "duration": 4.01, "language":...

### Describe the bug This section of the codebase expects json even when the response_format is not json: https://github.com/openai/openai-python/blob/75c90a71e88e4194ce22c71edeb3d2dee7f6ac93/openai/api_requestor.py#L668C7-L673 I think I can contribute a quick bug fix PR today!...

bug

### Describe the bug When I use openai package with [jupyterlab-desktop](https://github.com/jupyterlab/jupyterlab-desktop/releases/tag/v3.6.1-2), the following error occurred: environment: - MacOS 13.2.1(M1) - openai == 0.27.0 - jupyterlab-desktop == 3.6.1-2 - python3.8 ###...

bug

I just switched out the format method calls for f-strings since they're faster. I left the old code as comments and will delete the old code once these changes are...

### Describe the feature or improvement you're requesting I hope that the OpenAI API will be opened to China. ### Additional context _No response_

Related to https://github.com/openai/openai-python/issues/231 When Completion is incorrectly used, the error suggests an bug in the codebase: ``` openai.api_key = "openai-key" id_ = "cmpl-id" result = openai.Completion.retrieve(id_chat) # EngineAPIResource.init() takes from...

### Describe the bug **EngineAPIResource.__init__() takes from 1 to 2 positional arguments but 3 were given** ### To Reproduce does this only happen to me when using 'retrieve' in openai....

bug

### Describe the bug When I call `Embedding.create` with a large number of text chunks (batch) I get JSON decoding errors in the reponse. If I keep the batch size...

bug

### Describe the feature or improvement you're requesting I hope to count the usage consumption of several API Keys under my OpenAI account. On the help page, I saw this...