"App deployment fails with 'proxies' error despite code update"

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 use client = OpenAI(api_key=api_key) without proxies.
  • Committed and pushed to https://github.com/prashanth123-career/Career_chat_counsellor.
  • Tried renaming app.py to application.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:

Request:
Can someone help me clear the cache or identify why the old code is still running? Thank you!

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