#help to ChatCompletion

26 messages · Page 1 of 1 (latest)

chilly shard
#

what to do? I wanted to run a new model "gpt-3.5-turbo" and I get an error in python

‘completion = openai.ChatCompletion.create(
^^^^^^^^^^^^^^^^^^^^^
‘AttributeError: module 'openai' has no ‘attribute 'ChatCompletion'. Did you mean: ‘'Completion'?

mossy moat
#

Upgrade your openai to latest version
pip install openai --upgrade

chilly shard
mossy moat
#

your python version?

chilly shard
mossy moat
#

Run python -V
in your system

if you are on windows run py -V

chilly shard
#

macOS

#

@mossy moat what to do?

mossy moat
#

python -V

chilly shard
#

3.11

#

@mossy moat

#

Help me

mossy moat
#

Are you using any virtual environment

chilly shard
#

No

chilly shard
iron wharf
#

you just want to call "openai.Completion.create()"

chilly shard
iron wharf
#

when you run "pip install openai --upgrade" do you get any error messages?

#

you're calling chatcompletion, which should be in there. so it's likely that the openai api didn't update correctly on your machine

chilly shard
patent cypress
#

You need to show us your error message after running pip install openai --upgrade

#

The issue is that your OpenAI library is outdated

#

No differences to mac