Unable to access openai.Completion


We have updated the code and library as OpenAI is not providing free credits.

Refer to the following topics in module 1:
“Getting access to the API Key” to get the API access
“Install the boltiotai library”

After you have got the API key,

First install the boltiotai library with the below command:

pip install boltiotai

Then in your code replace “import openai” with “from boltiot import openai”