Problem Description:
I’m deploying a Streamlit app (careerchatcounsellor-fb6wuuhpdrvkmjy8lplg9b.streamlit.app
) that uses the OpenAI API, but I keep getting the error: Error initializing OpenAI client: Client.init() got an unexpected keyword argument 'proxies'
. I’ve updated the app.py
file to remove the proxies
argument, committed, and pushed the changes to GitHub, but the error persists.
Steps Taken:
- Updated
app.py
to useclient = OpenAI(api_key=api_key)
withoutproxies
. - Committed and pushed to
https://github.com/prashanth123-career/Career_chat_counsellor
. - Tried renaming
app.py
toapplication.py
and back to force a rebuild. - Verified the API key and secrets in Streamlit Cloud.
Logs:
[Paste the latest deployment logs here, e.g., the ones showing the proxies
error.]
Expected Behavior:
The app should initialize the OpenAI client successfully and display the promotional front end.
Actual Behavior:
The app crashes with the proxies
error.
Additional Info:
- Streamlit version: 1.35.0
- OpenAI version: 1.35.12
- OS: Windows
- GitHub repo: GitHub - prashanth123-career/Career_chat_counsellor
- App URL: https://careerchatcounsellor-fb6wuuhpdrvkmjy8lplg9b.streamlit.app
Request:
Can someone help me clear the cache or identify why the old code is still running? Thank you!