whyiyhw / chatgpt-wechat

企业微信/微信 安全使用的 ChatGPT 个人助手应用
Apache License 2.0
960 stars 196 forks source link

Socket5代理是否可以配置密码认证 #78

Closed Flavored4179 closed 1 year ago

Flavored4179 commented 1 year ago

您好, 在使用#usage指令时,由于url是使用api.openai.com去访问,无法返回结果,是否也可以使用反代地址呢?

{"@timestamp":"2023-06-15T11:03:17.139+08:00","caller":"logic/chatlogic.go:909","content":"get usage failGet \"https://api.openai.com/v1/dashboard/billing/subscription\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)","level":"info"}

配置了Socket5,有用户名密码认证,显示too many colons in address,是否支持用户名密码认证呢?

{"@timestamp":"2023-06-15T10:55:06.938+08:00","caller":"logic/chatlogic.go:909","content":"get usage failGet \"https://api.openai.com/v1/dashboard/billing/subscription\": socks connect tcp: dial tcp: address 用户名:密码@IP地址:端口: too many colons in address","level":"info"}

期待您的答复,谢谢您。

whyiyhw commented 1 year ago

我晚上补充,然后测试下

whyiyhw commented 1 year ago
  1. 已支持 反代域名的 #usage 操作
  2. 已支持 proxy 的认证参数
Flavored4179 commented 1 year ago

非常感谢,反代和socket5代理认证试了都可以了。