langchain-rag-app/ Client.__init__() got an unexpected keyword argument 'proxies'
Les mainteneurs répondent en général sous 5 jours
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Accessibilité débutants
- 45/100
Piste de recherche
Commencez dans langchain-rag-app/source_code_final et examinez chatbot_api/pyproject.toml et requirements.txt pour vérifier les versions des dépendances OpenAI et httpx. Reconstruisez avec docker-compose up --build et confirmez que chatbot_api démarre sans l’erreur Client.init() signalée.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
ℹ️ 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
source_code_final-chatbot_api-1 | cypher_llm=ChatOpenAI(model=HOSPITAL_CYPHER_MODEL, temperature=0),
source_code_final-chatbot_api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
source_code_final-chatbot_api-1 | File "/usr/local/lib/python3.11/site-packages/langchain_core/load/serializable.py", line 107, in init
source_code_final-chatbot_api-1 | super().init(**kwargs)
source_code_final-chatbot_api-1 | File "/usr/local/lib/python3.11/site-packages/pydantic/v1/main.py", line 341, in init
source_code_final-chatbot_api-1 | raise validation_error
source_code_final-chatbot_api-1 | pydantic.v1.error_wrappers.ValidationError: 1 validation error for ChatOpenAI
source_code_final-chatbot_api-1 | root
source_code_final-chatbot_api-1 | Client.init() got an unexpected keyword argument 'proxies' (type=type_error)
source_code_final-chatbot_api-1 | Failed to write data to connection ResolvedIPv4Address(('34.126.114.186', 7687)) (ResolvedIPv4Address(('34.126.114.186', 7687)))
source_code_final-chatbot_api-1 | Failed to write data to connection IPv4Address(('7cf48f19.databases.neo4j.io', 7687)) (ResolvedIPv4Address(('34.126.114.186', 7687)))
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.
- Langage dominant
- Jupyter Notebook
- Étoiles
- 5.2k
- Forks
- 5.3k
- Merge moyen
- 5 j 4 h
- PR mergées (30 j)
- 15
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Aucun guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de realpython/materials
-
Ruff lints the whole repoOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
realpython/materials#729 ·
Les mainteneurs répondent en général sous 5 jours
-
пOuverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 1/100
realpython/materials#763 ·
Les mainteneurs répondent en général sous 5 jours
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 55/100
realpython/materials#738 ·
Les mainteneurs répondent en général sous 5 jours
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 45/100
realpython/materials#737 ·
Les mainteneurs répondent en général sous 5 jours
-
проект2Ouverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 15/100
realpython/materials#725 ·
Les mainteneurs répondent en général sous 5 jours
Toutes les issues de realpython/materials
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
NousResearch/hermes-agent#131271 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
feature-request needs-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
aws/aws-sdk-php#3365 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
BasedHardware/omi#20271 ·
Les mainteneurs répondent en général sous 1 jour
-
area/core status/need-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
google-gemini/gemini-cli#29602 ·
Les mainteneurs répondent en général sous 1 jour