bujnlc8 / gptbing Goto Github PK
View Code? Open in Web Editor NEW集成ChatGPT和New Bing到微信,提供New Bing聊天小程序,额外集成了Google Bard和文心一言
集成ChatGPT和New Bing到微信,提供New Bing聊天小程序,额外集成了Google Bard和文心一言
关于后台docker部署,目前报错如下:
docker pull yy194131/new-bing:$1
invalid reference format
搭建new-bing服务
1.使用Dockerfile自行build,服务起来后执行curl -X POST 'http://127.0.0.1:8000/bing/chat' -H 'content-type: application/json' --data '{"q":"你是谁?","t":1,"sid":"1"}'
报错 {"description":"Internal Server Error","status":500,"message":"The application encountered an unexpected error and could not continue."}
在docker容器里面调试,得到报错信息:
[2023-06-08 16:30:12 +0800] [40] [WARNING] Sanic is running in PRODUCTION mode. Consider using '--debug' or '--dev' while actively developing your application.
[2023-06-08 16:30:13 +0800] [49] [INFO] Starting worker [49]
[2023-06-08 16:30:15 +0800] [49] [ERROR] Exception occurred while handling uri: 'http://127.0.0.1:8000/bing/chat'
Traceback (most recent call last):
File "handle_request", line 97, in handle_request
from sanic_ext.extensions.base import Extension # type: ignore
^^^^^^^^^^^^^^
File "/sanic/app.py", line 380, in chat
raise Exception(NO_ACCESS)
Exception: 暂时无法为你提供服务!
2.使用start.sh拉镜像,服务起来后执行curl -X POST 'http://127.0.0.1:8000/bing/chat' -H 'content-type: application/json' --data '{"q":"你是谁?","t":1,"sid":"1"}'
报错 {"description":"Not Found","status":404,"message":"Requested URL /bing/chat not found"}
我的env文件内容如下:
COOKIE_FILES=["/sanic/cookies/cookie0.json"]
ALL_PROXY=socks5://172.17.0.1:1080
REDIS_HOST=172.17.0.1
REDIS_PORT=6379
REDIS_PASSWD=12345678
请问有哪些配置是要自己更改的?
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部署的,感觉是代理这块没搞清楚。
麻烦指点一下,谢谢!
听说gpt类的小程序好多都被封了
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.