Git Product home page Git Product logo

gptbing's People

Contributors

bujnlc8 avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gptbing's Issues

服务异常

搭建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部署的,感觉是代理这块没搞清楚。
麻烦指点一下,谢谢!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.