Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

问题:如何让chaty使用本地的http或者socks代理? #18

Open
zhangchunlin opened this issue Mar 20, 2023 · 2 comments
Open

Comments

@zhangchunlin
Copy link

例如本机的 http代理: 127.0.0.1:7788
本机的 socks代理: 127.0.0.1:8899
要怎么配置呢?
比如在 ~/.chaty/.env里配置CHATY_PROXY为 http://127.0.0.1:7788 是不能正常使用的,好像是不同类型的代理。

@cosin2077
Copy link
Owner

后续会考虑支持socks5代理
目前的CHATY_PROXY代理只是一个http请求的转发代理

@zhangchunlin
Copy link
Author

那就是说我本机的 http 代理也是应该可以直接使用的对吗?
但是实际设置了 http://127.0.0.1:7788/ 以后是不能用的
错误信息

  <-- POST /chat/message

use http://127.0.0.1:7788/

read ECONNRESET

undefined

但是这个代理我chrome配置了是可以使用的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants