#AttributeError: module 'openai' has no attribute 'Completion'

4 messages · Page 1 of 1 (latest)

brazen citrus
#

Describe the bug
The feature is not working at all for me, so I created a new venv and it still does not work

To Reproduce
import openai openai.api_key = "key" completion = openai.Completion.create( model="gpt-3.5-turbo", messages=[{"role": "user", "content": "Hello world!"}] )

macOS
Python v3.11.3
openai-python v0.27.5

signal trout
#
response = openai.ChatCompletion.create(
  model="gpt-3.5-turbo",
  messages=[<stuff here>
    ]
)```
brazen citrus