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

尝试了很多遍还是没成功 #6

Open
tiexo opened this issue Jul 26, 2023 · 7 comments
Open

尝试了很多遍还是没成功 #6

tiexo opened this issue Jul 26, 2023 · 7 comments

Comments

@tiexo
Copy link

tiexo commented Jul 26, 2023

请问有哪些配置是要自己更改的?

new-bing应该就改 env 这一个文件就行了吧
使用bing的话,是不是只保留这四行就可以,这些url和proxy需要更改么

COOKIE_FILES=["/sanic/cookies/cookie0.json", "/sanic/cookies/cookie1.json", "/sanic/cookies/cookie2.json"]
https_proxy=http://172.18.0.1:1080
BING_URL=https://www.bing.com 
BING_PROXY_URL=https://www.bing.com/turing/conversation/create 

然后 wechatbot里面的配置文件是 config.json,最下面的bing_chat_url是怎么得来的呢

{
  "api_key": "",     
  "auto_pass": true,  
  "bing_chat_url": "" 
}

我是用腾讯云轻量服务器的docker部署的,感觉是代理这块没搞清楚。
麻烦指点一下,谢谢!

@bujnlc8
Copy link
Owner

bujnlc8 commented Jul 26, 2023

https_proxy更换成实际的地址,保证在容器里能连上。bing_chat_url就是new bing项目http接口的地址 http://example.com/bing/chat

@bujnlc8
Copy link
Owner

bujnlc8 commented Jul 26, 2023

报什么错,可以贴出来看看

@tiexo
Copy link
Author

tiexo commented Jul 26, 2023

https_proxy更换成实际的地址,保证在容器里能连上。bing_chat_url就是new bing项目http接口的地址 http://example.com/bing/chat

也就是https_proxy这里要改成一个能访问bing的代理ip
这种代理ip有稳定的渠道获取么,之前没接触过这种,我平时都是用的v2rayn。

bing_chat_url 这里也是填这个代理ip吗

@bujnlc8
Copy link
Owner

bujnlc8 commented Jul 26, 2023

https_proxy更换成实际的地址,保证在容器里能连上。bing_chat_url就是new bing项目http接口的地址 http://example.com/bing/chat

也就是https_proxy这里要改成一个能访问bing的代理ip 这种代理ip有稳定的渠道获取么,之前没接触过这种,我平时都是用的v2rayn。

bing_chat_url 这里也是填这个代理ip吗

免费的代理有很多,比如https://www.sslproxies.org/,但稳定性没法保证。http代理和socks代理都可以。

bing_chat_url 是部署new-bing服务之后得到的地址,不是代理地址

@tiexo
Copy link
Author

tiexo commented Jul 26, 2023

@bujnlc8 我只走到bash start.sh 0.0.3 这一步
下一步不知道怎么改了

curl -X POST 'http://127.0.0.1:8000/bing/chat

这里的地址应该改成什么呢

是服务器的外网ip?还是代理ip?
我试了两个都不行,各种错误

@bujnlc8
Copy link
Owner

bujnlc8 commented Jul 27, 2023

这个ip就是这个,报错可以贴出来

@tiexo
Copy link
Author

tiexo commented Jul 27, 2023

这个ip就是这个,报错可以贴出来

报错就是这样:curl: (7) Failed to connect to 127.0.0.1 port 8000: Connection refused

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