langchain-rag-app/ Client.__init__() got an unexpected keyword argument 'proxies'
:information_source: Please note that the best way to get support for Real Python courses & articles is to join one of our weekly Office Hours calls or in the RP Community Slack.
You can report issues and problems here, but we typically won't be able to provide 1:1 support outside the channels listed above.
Describe the bug A clear and concise description of what the bug is. In langchain-rag-app directory, according to README.md, I excecute 'docker-compose up --build'. There is an error related to chatbot_api.
source_code_final-chatbot_api-1 | from chains.hospital_cypher_chain import hospital_cypher_chain
source_code_final-chatbot_api-1 | File "/app/chains/hospital_cypher_chain.py", line 149, in
To Reproduce Steps to reproduce the behavior:
- Go to langchain-rag-app/source_code_final directory.
- In console terminal, docker-compose up --build
- See error
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: Ubuntu22.04
Additional context Add any other context about the problem here.
I searched similar problems and fixed problem manually. https://community.openai.com/t/error-with-openai-1-56-0-client-init-got-an-unexpected-keyword-argument-proxies/1040332/24 The problem is version of openai and httpx.
-
I update openai version in chatbot_api/pyproject.toml.
-
"openai==1.7.2" --> "openai==1.55.3"
-
I update httpx in requirements.txt
-
httpx==0.26.0 --> httpx==0.27.2
Then, it works fine!!
I think it would be good to update this later. Thank you.