#openai migrate

1 messages · Page 1 of 1 (latest)

bitter meteor
#

hi guys so im working on ai chatbot project and this is the error that i got:


You can run `openai migrate` to automatically upgrade your codebase to use the 1.0.0 interface.

Alternatively, you can pin your installation to the old version, e.g. `pip install openai==0.28`

A detailed migration guide is available here: https://github.com/openai/openai-python/discussions/742```
can i anyone help me, i tried the pip install openai==0.28 but it didnt work, and tutorial on github is a bit confusing to me
orchid owl
#

@bitter meteor You have to change your code as OpenAI changed their library.

openai.Completion.create() -> client.completions.create()```
bitter meteor