Hi @anupjha112
Please make sure that the secret key variable is matching with the environment variable in the code. in this case it could be “OPENAI_API_KEY”. Also make sure that you are using the latest API key generated from bolt trainings website.
Do try this and let us know. If this does not solve the issue, the please share your Repl with support@boltiot.com using the invite option in Replit. We will then debug the issue.
You are most probably using the bolt api key but in code are importing from openai.
from boltiotai import openai
use this
Verify that environment variables are correctly set and accessible. Also ensure that your api key has necessary permissions for the api you are accessing.