You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
I encountered an issue while using the AI Coach XBlock in Sumac. When clicking the "Ask from coach" button, the request fails with the following error in the logs:
2025-02-20 21:17:58,842 ERROR 29 [ai_coach.ai_coach] [user 7] [ip 172.20.0.1] ai_coach.py:187 - 'dict' object has no attribute 'chat'
After debugging, I found that this happens because the OpenAI client fails to initialize, with the following error:
Client.__init__() got an unexpected keyword argument 'proxies'
Description:
I encountered an issue while using the AI Coach XBlock in Sumac. When clicking the "Ask from coach" button, the request fails with the following error in the logs:
After debugging, I found that this happens because the OpenAI client fails to initialize, with the following error:
It looks like this issue is caused by the httpx version 0.28, which removed the deprecated
proxies
argumenthttps://community.openai.com/t/error-with-openai-1-56-0-client-init-got-an-unexpected-keyword-argument-proxies/1040332/2
geekan/MetaGPT#1617
Temporary Solution:
As a workaround, I downgraded
httpx
to 0.27.2, and the XBlock is now workingThe text was updated successfully, but these errors were encountered: