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

After `pip install openai`, I tried: openai api completions.create -e text-davinci-003 -p "what means soyboy in French? I get Le terme « soyboy » n'est pas courant en The text...

### Describe the bug I'm trying to install openai on my ubuntu machine, but the installation wheel crashes because a module called "aiohttp" is missing. I installed aiohttp, but the...

bug

### Describe the feature or improvement you're requesting In the Node.js API we have the API accepting keys upon creation of the `OpenAIApi` object: ```javascript import { Configuration, OpenAIApi }...

### Describe the bug Hello. I cant access gpt-3.5-turbo with python because I seem to be getting the error " AttributeError: module ‘openai’ has no attribute ‘ChatCompletion’" I have updated...

bug

### Problem Many users (including me) are trying to call the "gpt-3.5-turbo" from the `Completion` class. See #250. ``` response = openai.Completion.create( model="gpt-3.5-turbo", prompt="Who won the world series in 2020?",...

### Describe the bug The feature was working few hours ago, now it's giving error. ### To Reproduce ``` import openai openai.api_key = 'key' openai.ChatCompletion.create( model="gpt-3.5-turbo", messages=[ {"role": "system", "content":...

bug

### Describe the feature or improvement you're requesting With davinci I used these: ``` max_tokens=40, n=1, stop=None, temperature=0.5 ``` How can I get the same with gpt 3.5 turbo in...

### Describe the feature or improvement you're requesting In the Completion endpoint we can batch input prompts in one API request. It would be nice to have the same feature...

### Describe the bug Just ran the documentation code on Jupyter notebook and got in python3.9/site-packages/openai/util.py:112 if isinstance(resp, openai.openai_response.OpenAIResponse): 113 organization = resp.organization 114 response_ms = resp.response_ms **AttributeError: module 'openai'...

bug

### Describe the bug when I upgrade openai to v0.27.0 and reproduce your sample: import openai openai.ChatCompletion.create( model="gpt-3.5-turbo", messages=[ {"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content":...

bug