相信很多做大模型或者用了其他依赖httpx的库的小伙伴都遇到过这个错误:
TypeError: __init__() got an unexpected keyword argument 'proxies'
收集的报错信息有
openai
nonebot_bison
原因(不看源码真发现不了)
httpx的版本太高了
httpx包在11.28进行更新,安装了httpx 0.28.0 版本的包导致报错
解决办法
pip install httpx==0.27.2
TypeError: __init__() got an unexpected keyword argument 'proxies'
httpx的版本太高了
httpx包在11.28进行更新,安装了httpx 0.28.0 版本的包导致报错
pip install httpx==0.27.2