"No API Key Provided" Won't work once I deploy the app

Chatbot wont work after I deploy it. I have put in the API key in the main script, into my secrets, and into my environment.

You can access st.secrets via attribute notation (e.g. st.secrets.key ), in addition to key notation (e.g. st.secrets["key"] )

# Get the OpenAI API key from Streamlit secrets

# Initialize the OpenAI instance
openai = OpenAI(api_key=OPENAI_API_KEY)

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.