yihong0618 / xiaogpt

Play ChatGPT and other LLM with Xiaomi AI Speaker
MIT License
6.03k stars 839 forks source link

--proxy参数在和--use_langchain配合后无法输出内容 #348

Closed yuan6785 closed 10 months ago

yuan6785 commented 10 months ago

是否是因为proxy在langchain无法生效的原因?

yuan6785 commented 10 months ago

OPENAI_API_KEY= SERPAPI_API_KEY= http_proxy=http://127.0.0.1:8118 https_proxy=http://127.0.0.1:8118 /opt/software/anconda3/envs/py310_xiaogpt/bin/xiaogpt --account= --password= --hardware=L15A --proxy http://127.0.0.1:8118 --mute_xiaoai --use_langchain --stream

最终,我用了http全局代理 (http_proxy=http://127.0.0.1:8118 https_proxy=http://127.0.0.1:8118 ),是可以跑通的, 感谢作者。

image

和网上的能对上

image
yihong0618 commented 10 months ago

不客气!

dongjing007 commented 10 months ago

请求langchain时,没有配置proxy,我来加一下吧。

yihong0618 commented 10 months ago

@dongjing007 感谢。

dongjing007 commented 10 months ago

@dongjing007 感谢。

客气啦,明天自测通过就提PR(要找个代理来测试,比较麻烦 🤣)

yihong0618 commented 10 months ago

感谢~

yihong0618 commented 10 months ago

fixed thanks @dongjing007