Git Product home page Git Product logo

bingo's People

Contributors

renqabs avatar weaigc 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  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  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

bingo's Issues

HF 部署的环境变量问题

HF 部署时需要填一个 IMAGE_BING_COOKIE ,描述是 Cookie _U 值。我把自己账号的 _U 复制进去了,但是好像并没有生效?还是说这个 IMAGE_BING_COOKIE 应该填 BING_HEADER?

macOS11 Safari14.1浏览器依旧不能运行

能进入Web页面,但点击发送自己提的问题,就会弹出“Application error: a client-side exception has occurred (see the browser console for more information).”
我看了下javascribe控制台,
Blocked a frame with origin "https://bing.github1s.tk" from accessing a frame with origin "https://hf4all-bingo.hf.space". Protocols, domains, and ports must match.

TypeError: l.at is not a function. (In 'l.at(-1)', 'l.at' is undefined)

Unhandled Promise Rejection: TypeError: t.item.messages.at is not a function. (In 't.item.messages.at(-1)', 't.item.messages.at' is undefined)

深色访问启用

建议把深色访问加上,要不然我这页面那么白的看不清,只有黑的才能看得清,还有这个新项目做的不错,比上一个bing的项目还要不错一点,继续加油(ง•̀_•́)ง

wss的接口

既然支持wss转发,那么请问接口的地址是什么,求解答

请求实现快捷复制答案等功能

能考虑下把图片中的功能,加入至其中吗?拖拽复制答案可能会非常麻烦,但是我认为一键复制答案的功能,可能会更加方便。如果可以,我将会非常感谢!
Screenshot_20230815_171908

部署的几个问题

1 render一键部署时,我用github账号进入render,但自动就登出了,不知道为啥,改用谷歌账号登录后关联github账号由说id被占用。
2 netlify可以部署,但是经常出现unknow errors
3 在部署后的界面里,设置用户时点击登录这个链接https://www.bing.com/turing/captcha/challenge
但是自动跳转为https://cn.bing.com/turing/captcha/challenge ,提示无效域
https://www.bing.com/turing/conversation/create 这个链接打不开,不知道如何

问题3进展,我通过微软虚拟机https://learn.microsoft.com/zh-cn/training/modules/implement-common-integration-features-finance-ops/10-exercise-1
登录edge后,可以进入www.bing.com并且获得了create的链接。回到部署界面用户设置后,页面说保存成功并且似乎重新刷新了一下,但是提问时显示你已达到每日最大发送消息次数,请[更换账号]或隔一天后重试

4 这个貌似不能切换平衡模式和精确模式,只有创造模式吗

5 https://bing.github1s.tk/ 这个貌似使用正常,是怎么弄得,教教我呗

本地部署

本地部署对设备配置有何需求,网络+硬件

Unknown error BUG

我尝试通过node启动

git clone https://github.com/weaigc/bingo.git
npm i # 推荐使用 pnpm i
npm run build
npm run start
TypeError [ERR_HTTP_INVALID_HEADER_VALUE]: Invalid value "undefined" for header "x-forwarded-for"
    at ClientRequest.setHeader (node:_http_outgoing:647:3)
    at new ClientRequest (node:_http_client:284:14)
    at request (node:https:357:10)
    at initAsClient (/opt/bingo/node_modules/ws/lib/websocket.js:843:28)
    at new WebSocket (/opt/bingo/node_modules/ws/lib/websocket.js:85:7)
    at handler (/opt/bingo/.next/server/pages/api/sydney.js:553:16)
    at /opt/bingo/node_modules/next/dist/server/api-utils/node.js:463:16
    at /opt/bingo/node_modules/next/dist/server/lib/trace/tracer.js:117:36
    at NoopContextManager.with (/opt/bingo/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:7057)
    at ContextAPI.with (/opt/bingo/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:516) {
  code: 'ERR_HTTP_INVALID_HEADER_VALUE'

或者通过docker方式启动。

但是发现打开页面后,当输入提示词时,页面显示 Unknown error
1

2

可以部署在cf上吗?

这个项目与NewBingGoGo-Web的实现原理有什么差异吗?
是重写前端,调用可代理访问官网的后端服务器来实现的吧?
目前NBGoGo的前端是放在github上,后端直接用的cf的workes,可以很好工作。
但由于作者没有精力跟进前端功能开发,项目基本停摆了。

这个项目原理基本相似,应该也可以直接在cf上部署后端,github上部署前端吧?

是否默认的模式为“更加精确”且无法修改?

首先,感谢大佬的这个项目,让我们又重新用到了newbing,但是在试用的过程中发现,newbing的回答质量很差,动不动就无法找到相关信息,于是我对比了原生的newbing,部署在huggingface的newbing很少主动搜索互联网,仅是自己作答,这样得出的答案自然是很差

Firefox网站报错

Firefox版本116,访问网站显示:

Application error: a client-side exception has occurred (see the browser console for more information).

打开控制台,显示

Uncaught (in promise) TypeError: ep is not a constructor
    NextJS 3
[page-e1b655c34d5433dd.js:1:16341](https://hf4all-bingo.hf.space/_next/static/chunks/app/page-e1b655c34d5433dd.js)
TypeError: ep is not a constructor
    NextJS 12

常见问题汇总答疑

遇到问题请先尝试使用最新代码,如依然遇到问题,可以参考下面的方案解决,如依然不行,可以在 Issue 区寻找方法或提问。

Q: 一直创建会话失败

A:
问题原因:当一个空间访问超过一定次数时,会触发临时封禁。
解决办法

  1. 复制并创建多个空间,如 xxx1.hf.spaces, xx2.hf.spaces,或者也可以自己找能用的vps使用docker部署
  2. 在主空间配置 ENDPOINT 字段,如: xxx1.hf.spaces/api,xx2.hf.spaces 多个用 , 号分隔

Q: 聊天经常中断?

A: 有可能网络原因,也有可能是正在部署,建议自己搭建。

Q: 为什么对话只有10次限制,我看别人的都有30次?

A: 只有10次是因为你没有登录自己的账号,登录了就可以有30次,配置参考以下图片,注意不要漏掉任何一个配置(前提:你的账号正常可用)
5ce49b02a7eaa4a25be86bff4edfa7a

Q: 如何使用 GPT4

5ce49b02a7eaa4a25be86bff4edfa7a

A: GPT4 开关目前只在手机 App 上存在,经研究发现,GPT4 实际上就是原来的创造力模式,只不过改了一个名字:
GPT4 开 = 创造力模式
GPT4 关 = 平衡模式

Q: 如何把自己的信息配置给所有人用?

A: 创建一个 .env 文件,设置 BING_HEADER 变量,或者直接设置 BING_HEADER 为环境变量。如何获取 BING_HEADER

UI细节补充

建议做的和官网再像一点,UI方面要补充,总体来说做的还不错,继续加油

docker部署遇到了点问题

docker build . -t bingo

Sending build context to Docker daemon 1.035MB
Step 1/15 : FROM node:18
---> 0f9df951673d
Step 2/15 : ARG DEBIAN_FRONTEND=noninteractive
---> Using cache
---> 7411aca1fe43
Step 3/15 : ENV BING_UA Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36 Edg/115.0.0.0
---> Using cache
---> 155a8c94ed7a
Step 4/15 : ENV BING_COOKIE ""
---> Using cache
---> a1580d8c25e3
Step 5/15 : RUN useradd -o -u 1000 user
---> Using cache
---> b8a14fd537f9
Step 6/15 : USER user
---> Using cache
---> 551045026943
Step 7/15 : ENV HOME=/home/user PATH=/home/user/.local/bin:$PATH
---> Using cache
---> 32a649c21546
Step 8/15 : WORKDIR $HOME/app
---> Using cache
---> 2bfb8a85cca7
Step 9/15 : COPY --chown=user package*.json $HOME/app/
---> Using cache
---> 527b4b1a4db8
Step 10/15 : RUN npm install
---> Running in 6c5381a7689c
npm ERR! code ERR_INVALID_ARG_TYPE
npm ERR! The "path" argument must be of type string or an instance of Buffer or URL. Received null

npm ERR! Log files were not written due to an error writing to the directory: /home/user/.npm/_logs
npm ERR! You can rerun the command with --loglevel=verbose to see the logs in your terminal

有没有大佬解答下怎么解决?

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.