Difficulty in coding after installing the boltiotai library

Sir , after i installed the boltiotai library , i am getting an error saying that there is no module like boltiot / boltiotai. so i am not able to code

Hi @saileshbvs

Can you please share a screenshot of the error you are getting?
Also, while importing openai on line 1 you can import it as :

from boltiotai import openai

If boltiotai library is not installed you can go to the shell tab in replit and install the boltiotai library by using the following comand;

pip install boltiotai

Do try this and let us know. If you still face any issues, please feel free to get back to us.

This is the error that I am getting.

Hi @saileshbvs

Please make sure that the variable name is matching in the secrets tab where you have stored your api key. In your case you can rename the variable in secrets tab as “OPENAI_API_KEY”.

Can you share a screenshot of the secrets section on replit? This will help us to guide you better.

This is where I have added my API KEY

After that , I am getting this error

Hi @saileshbvs

Can you share your repl to support@boltiot.com. To share your repl please click on the invite option on the top right corner.

I will check and debug the code. Do let us know, once you have the the repl

Hi @saileshbvs

We have checked the code in your repl and we see that the API key used is from open AI platform. Please generate a new API key from https://trainings.boltiot.com/ApiUsage and paste it in the Secret section on Replit. Then Run your code again.

Try this and let us know. If you still face any issue please feel free to get back to us