chatopenai Proxies pydantic error solution
refer: https://github.com/FoundationAgents/MetaGPT/issues/1617
content:
Error Code:
"/mnt/maldetect_NAS/aibot/workspace/sage/sage/retriever.py", line 216, in _call_via_anthropic_with_prompt_caching File "/home/aibot/anaconda3/envs/sage/lib/python3.9/site-packages/langchain_core/load/serializable.py", line 113, in __init__ super().__init__(*args, **kwargs) File "/home/aibot/anaconda3/envs/sage/lib/python3.9/site-packages/pydantic/v1/main.py", line 347, in __init__ raise validation_error pydantic.v1.error_wrappers.ValidationError: 1 validation error for ChatOpenAI __root__ __init__() got an unexpected keyword argument 'proxies' (type=type_error)
Solution:
the solution httpx==0.27.2 works here.
这个解决方案 httpx==0.27.2 在这里有效。

浙公网安备 33010602011771号
I update the openai package from 1.52.2 to 1.55.3 and it is working for me
我将 openai 包从 1.52.2 更新到 1.55.3,并且它在我的系统上可以正常工作