#openai.Conpletion.create is invalid for gpt turbo

2 messages · Page 1 of 1 (latest)

flat dune
#

I have the code ```py
response = openai.Completion.create(model="gpt-3.5-turbo", prompt=text, temperature=0.7, max_tokens=256)


When I try to run something it says "Error: This is a chat model and not supported in the v1/completions endpoint. Did you mean to use v1/chat/completions?"

Nothing was changed in the docs, so I'm not sure what to change it to
#

Nvm I'm very blind