Product: ChatGPT API
Platform: Streamlit App
Severity: High
Description:
The ChatGPT API is consistently returning an "AuthenticationError: Incorrect API Keys provided..." when attempting to use it in a Streamlit app. The same API key was functional yesterday without any issues. The app being developed is for converting slides to Markdown format.
Steps taken to resolve the issue:
- Double-checked the API keys to ensure correctness.
- Referred to OpenAI's documentation for possible solutions and attempted all suggested fixes.
- Restarted the Streamlit app and the development environment.
Expected behavior:
The ChatGPT API should authenticate and process the request successfully, given that the API key was functional yesterday and there have been no changes in the app's code since then.
Actual behavior:
An "AuthenticationError: Incorrect API Keys provided..." is persistently returned despite using the correct API key.
Additional Information:
Attached are the screenshots of the Streamlit app showcasing the error message and the relevant code.
Please investigate this issue and provide assistance in resolving it. As the application depends on the ChatGPT API, its functionality is severely impacted by this error. I have currently redacted the keys in the screenshot and tried various other valid keys as well. It still doesn't work