Issue when I run the code of the Azure Open AI playground in google colab

I got a mistake when I tried to run the playground code of Azure Open AI. What openai version shold I install in order to openai.api_version = “2023-08-01-preview” works?

What’s the error message?

Try the most current version of the library.

1 Like

Thank you, I just solved it.
I had to migrate the code from version 0.* to version 1.
Maybe, they should clarify that when you generate the code from Azure Portal, that code does not work in that shape, it should be first migrated.

2 Likes