Hi! I tried to update My application for text-davinci-003 to gpt-3.5-turbo but didn't not work

Hi! I tried to update My application for text-davinci-003 to gpt-3.5-turbo but didn’t not work.

I replaced the old model “text-davinci-003”

To model “gpt-3.5-turbo”

You must also change the API method to chat and modify your params to the API.

HTH

:slight_smile:

Thanks for answer. I tried it but I get ERROR: module openai has no attribute ‘chatcompletiin’

:smiling_face_with_tear:

1 Like

LOL

I have no idea where you came up with chatcompletiin

Did you read the API doc on the chat method ?

Everything you need is there, @flagship.gold21

Hope this helps!

:slight_smile:

You probably need to update the openai library you are using as well

The end point is different, and most of the libraries (eg the python one) are being updated to use the new endpoints

1 Like