adams549659584 / go-proxy-bingai

用 Vue3 和 Go 搭建的微软 New Bing 演示站点,拥有一致的 UI 体验,支持 ChatGPT 提示词,国内可用。
MIT License
8.86k stars 13.22k forks source link

[Add] 🌈 新增图像识别功能 #361

Open Harry-zklcdc opened 1 year ago

Harry-zklcdc commented 1 year ago

PR: https://github.com/adams549659584/go-proxy-bingai/pull/284

二进制文件已编译完成

Harry-zklcdc commented 1 year ago

二进制文件

skyfly2000 commented 1 year ago

这个项目非常好,非常支持!但现在不知作者的意思,这是要另起炉灶?为什么不在项目里更新

Harry-zklcdc commented 1 year ago

但现在不知作者的意思

  1. 我的意思是: 在原项目上更新功能;

这是要另起炉灶?

  1. 并么有

为什么不在项目里更新

  1. 请了解PR (Pull Request) 的意思,我不是本项目的开发者,没有权限在本项目中更新,只能通过PR的方式
brdctrai commented 1 year ago

还能访问吗?

Harry-zklcdc commented 1 year ago

还能访问吗?

自行部署,我的是自己部署的,可以用

Thot-null commented 1 year ago

二进制文件

请问win10该下载哪个,下载后如何使用

Nothingness-Void commented 1 year ago

这个项目非常好,非常支持!但现在不知作者的意思,这是要另起炉灶?为什么不在项目里更新

作者这个项目是失业的时候搞得,现在人家找到工作了,你不能指望人家给你无偿维护的

Harry-zklcdc commented 1 year ago

请问win10该下载哪个,下载后如何使用

自行查看部署教程

fenger7 commented 1 year ago

帅哥,能传到docker上下去嘛?

brdctrai commented 1 year ago

还能访问吗?

自行部署,我的是自己部署的,可以用 你真的还能用?给链接看看

CKylinMC commented 1 year ago

你真的还能用?给链接看看

我自己部署的实测只要不填Cookie登陆就能用,填Cookie登录就验证码无效域了

Nothingness-Void commented 1 year ago

还能访问吗?

自行部署,我的是自己部署的,可以用 你真的还能用?给链接看看

我的目前也还能用 本站能用 cf链接不行

Harry-zklcdc commented 1 year ago

我自己部署的实测只要不填Cookie登陆就能用,填Cookie登录就验证码无效域了

我的那个版本是修复过的

Harry-zklcdc commented 1 year ago

我的目前也还能用 本站能用 cf链接不行

无解,Bing把CF的IP都ban了

Harry-zklcdc commented 1 year ago

帅哥,能传到docker上下去嘛?

我不帅😅,自行构建

Xqh-Cxy commented 1 year ago

但现在不知作者的意思

  1. 我的意思是: 在原项目上更新功能;

这是要另起炉灶?

  1. 并么有

为什么不在项目里更新

  1. 请了解PR (Pull Request) 的意思,我不是本项目的开发者,没有权限在本项目中更新,只能通过PR的方式

你不是开发者怎么知道图像上传的代码的?你是开发者的亲人或者朋友吗?

Harry-zklcdc commented 1 year ago

你不是开发者怎么知道图像上传的代码的?你是开发者的亲人或者朋友吗?

请阅读源代码,不做过多解释

touchtop commented 1 year ago

请问win10该下载哪个,下载后如何使用

自行查看部署教程

上面发布的二进制文件似乎有问题,win版本解压后不是exe。

Harry-zklcdc commented 1 year ago

上面发布的二进制文件似乎有问题,win版本解压后不是exe。

添加后缀即可,编译时忘了加了

brdctrai commented 1 year ago

真的还能用?给链接看看

Harry-zklcdc commented 1 year ago

请自行部署测试,不提供可用链接,代码都公开的,我部署的版本就是我上传代码的那个版本,没什么不一样

再回复类似 给链接看看 一律忽略处理

brdctrai commented 1 year ago

用你的版本部署一样也不能用

Nothingness-Void commented 1 year ago

用你的版本部署一样也不能用

你是不是用vercel部署的 得自己docker

Harry-zklcdc commented 1 year ago

用你的版本部署一样也不能用

Bing已经把大部分数据中心的IP ban了,请确保你的IP干净,如遇到类似询问管理员的情况,请在服务端IP下登录 new.bing.com,随意一次提问后,自动解锁IP

Harry-zklcdc commented 1 year ago

无解,Bing把CF的IP都ban了

测试之后可用,待我整理一下,发代码

Nothingness-Void commented 1 year ago

用你的版本部署一样也不能用

Bing已经把大部分数据中心的IP ban了,请确保你的IP干净,如遇到类似询问管理员的情况,请在服务端IP下登录 new.bing.com,随意一次提问后,自动解锁IP

大佬想问一下 windows版如何更改端口啊 是启动的时候加flag吗

Harry-zklcdc commented 1 year ago

大佬想问一下 windows版如何更改端口啊 是启动的时候加flag吗

https://github.com/adams549659584/go-proxy-bingai#%E7%8E%AF%E5%A2%83%E5%8F%98%E9%87%8F

image

brdctrai commented 1 year ago

在Replit 部署,如何登录 new.bing.com,随意一次提问后,自动解锁IP?

Harry-zklcdc commented 1 year ago

无解,Bing把CF的IP都ban了

测试之后可用,待我整理一下,发代码

已上传: https://github.com/Harry-zklcdc/go-proxy-bingai/commit/629f2a3bc77dac5ef70991e24c1653ca6e6c2c76

Harry-zklcdc commented 1 year ago

在Replit 部署,如何登录 new.bing.com,随意一次提问后,自动解锁IP?

等我新开一个帖子说明

CKylinMC commented 1 year ago

辛苦了

Harry-zklcdc commented 1 year ago

在Replit 部署,如何登录 new.bing.com,随意一次提问后,自动解锁IP?

具体使用方法查看 https://github.com/adams549659584/go-proxy-bingai/issues/363

CKylinMC commented 1 year ago

Bing已经把大部分数据中心的IP ban了,请确保你的IP干净,如遇到类似询问管理员的情况,请在服务端IP下登录 new.bing.com,随意一次提问后,自动解锁IP

测试通过,我的步骤:

  1. 使用任意方式访问到new.bing.com,并进行一次聊天,大概率验证,进行验证。
  2. 一键重置go-proxy-bingai,然后填写刚刚成功之后的_U
  3. 进行聊天,发现已经可以正常使用。

感谢!

Harry-zklcdc commented 1 year ago

测试通过,我的步骤:

  1. 使用任意方式访问到new.bing.com,并进行一次聊天,大概率验证,进行验证。
  2. 一键重置go-proxy-bingai,然后填写刚刚成功之后的_U
  3. 进行聊天,发现已经可以正常使用。

感谢!

不用谢!😊

YuenSzeHong commented 1 year ago

要不然fork一个我们继续开发吧,可惜我不会写go,要是写的ts c# java py我都会

Harry-zklcdc commented 1 year ago

要不然fork一个我们继续开发吧,可惜我不会写go,要是写的ts c# java py我都会

已经fork了 https://github.com/Harry-zklcdc/go-proxy-bingai

JasonLiuLiuLiuLiu commented 1 year ago

感谢,我在linux下使用以下命令执行报错,请问楼主啥意思啊?

root@origin:/www/bing# tar -zxvf go-proxy-bingai-linux-arm64.tar.gz
go-proxy-bingai
root@origin:/www/bing# chmod +x go-proxy-bingai
root@origin:/www/bing# ./go-proxy-bingai
-bash: ./go-proxy-bingai: cannot execute binary file: Exec format error
root@origin:/www/bing#
JasonLiuLiuLiuLiu commented 1 year ago

问了GPT 它是这样回答的 The error message "-bash: ./go-proxy-bingai: cannot execute binary file: Exec format error" typically occurs when you are trying to execute a binary file that is not compatible with your system.

Here are a few possible reasons for this error:

  1. Architecture mismatch: The binary file might be compiled for a different architecture than your system. For example, trying to run a 64-bit binary on a 32-bit system or vice versa.

  2. Missing dependencies: The binary file may require certain libraries or packages that are not installed on your system. Make sure all the necessary dependencies are present.

  3. File corruption: It's possible that the binary file itself is corrupted. Try re-downloading or obtaining a fresh copy of the file.

To resolve this issue, you can try the following steps:

  1. Check the architecture: Confirm that the binary file is compatible with your system's architecture. You can use the file command to check the file type and architecture. For example, run file go-proxy-bingai to get information about the file.

  2. Install required dependencies: If the binary has dependencies, make sure they are installed on your system. You can often find installation instructions in the project's documentation or README file.

  3. Re-download or obtain a fresh copy: If the file appears to be corrupted, try downloading it again from a reliable source. If it continues to fail, you may need to contact the author or maintainers of the binary for further assistance.

Please note that these steps are general troubleshooting suggestions, and the specific solution may vary depending on the context and details of the binary file you're working with.

Nothingness-Void commented 1 year ago

真的还能用?给链接看看

确实能用,自行部署即可

Nothingness-Void commented 1 year ago

真的还能用?给链接看看

确实能用,自行部署即可

IMG_20230719_221608

Nothingness-Void commented 1 year ago

感谢,我在linux下使用以下命令执行报错,请问楼主啥意思啊?

root@origin:/www/bing# tar -zxvf go-proxy-bingai-linux-arm64.tar.gz
go-proxy-bingai
root@origin:/www/bing# chmod +x go-proxy-bingai
root@origin:/www/bing# ./go-proxy-bingai
-bash: ./go-proxy-bingai: cannot execute binary file: Exec format error
root@origin:/www/bing#

我是可以执行的 不过我给的是 chmod 777 下的是第三个文件

Harry-zklcdc commented 1 year ago

感谢,我在linux下使用以下命令执行报错,请问楼主啥意思啊?

root@origin:/www/bing# tar -zxvf go-proxy-bingai-linux-arm64.tar.gz
go-proxy-bingai
root@origin:/www/bing# chmod +x go-proxy-bingai
root@origin:/www/bing# ./go-proxy-bingai
-bash: ./go-proxy-bingai: cannot execute binary file: Exec format error
root@origin:/www/bing#

请使用amd64的版本,你用到arm架构的了

JasonLiuLiuLiuLiu commented 1 year ago

感谢,我在linux下使用以下命令执行报错,请问楼主啥意思啊?

root@origin:/www/bing# tar -zxvf go-proxy-bingai-linux-arm64.tar.gz
go-proxy-bingai
root@origin:/www/bing# chmod +x go-proxy-bingai
root@origin:/www/bing# ./go-proxy-bingai
-bash: ./go-proxy-bingai: cannot execute binary file: Exec format error
root@origin:/www/bing#

请使用amd64的版本,你用到arm架构的了

大意了大意了 感谢 我再试试

Harry-zklcdc commented 1 year ago

感谢,我在linux下使用以下命令执行报错,请问楼主啥意思啊?

root@origin:/www/bing# tar -zxvf go-proxy-bingai-linux-arm64.tar.gz
go-proxy-bingai
root@origin:/www/bing# chmod +x go-proxy-bingai
root@origin:/www/bing# ./go-proxy-bingai
-bash: ./go-proxy-bingai: cannot execute binary file: Exec format error
root@origin:/www/bing#

我是可以执行的 不过我给的是 chmod 777 下的是第三个文件

不需要777权限,chmod +x filename(给予可执行权限)即可

JasonLiuLiuLiuLiu commented 1 year ago

考虑到原作者好像不再维护这个项目,楼主如果继续维护这个项目的话能不能把这里面的一些百度统计和谷歌统计代码除去呢? https://github.com/adams549659584/go-proxy-bingai/issues/364 或者我提PR给你也行

Harry-zklcdc commented 1 year ago

考虑到原作者好像不再维护这个项目,楼主如果继续维护这个项目的话能不能把这里面的一些百度统计和谷歌统计代码除去呢?

364

或者我提PR给你也行

  1. 作者留着百度统计应该有他的用处;
  2. 有能力的都会删除

综上,我并没有删除相关代码,而且不止百度统计,作者还加了Google分析

ilolita945 commented 1 year ago

二进制文件

尊敬的大佬,能否上传一个Docker

Harry-zklcdc commented 1 year ago

尊敬的大佬,能否上传一个Docker

docker不用上传镜像,修改一下 docker-compose.yml 就行,明天我搞个教程吧

Nothingness-Void commented 1 year ago

二进制文件

尊敬的大佬,能否上传一个Docker

version: "3" 
services:
  go-porxy-bingai:
    container_name: go-porxy-bingai
    image: nothingnessvoid/go-proxy-bingai:v1.0
    ports:
      - 8080:8080         # 容器端口映射到宿主机8080端口;宿主机监听端口可按需改为其它端口
    networks:
          - caddy
    restart: unless-stopped
    # environment:
    #   - Go_Proxy_BingAI_SOCKS_URL=192.168.0.88:1070
    #   - Go_Proxy_BingAI_SOCKS_USER=xxx
    #   - Go_Proxy_BingAI_SOCKS_PWD=xxx
    #   - Go_Proxy_BingAI_USER_TOKEN_1=xxx
    #   - Go_Proxy_BingAI_USER_TOKEN_2=xxx
    labels:
      caddy: 域名.com # 填写你预先解析到 ip 上的域名
      caddy.reverse_proxy: "{{upstreams 8080}}"

  caddy:
    image: lucaslorentz/caddy-docker-proxy:ci-alpine
    ports:
      - 80:80
      - 443:443
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock # 公开 Docker 的套接字文件
      - caddy_data:/data # 存储 Caddy 的持久数据
    environment:
      - CADDY_INGRESS_NETWORKS=caddy # 告诉 Caddy 它可以代理 Docker 网络中的服务
    networks:
      - caddy
    restart: unless-stopped

networks:
  caddy:
    external: true

volumes:
  caddy_data: {}

这是我自己用的docker-compose配置文件 你看看吧,能看懂就用 镜像是我自己pull源码构建的

ilolita945 commented 1 year ago

尊敬的大佬,能否上传一个Docker

docker不用上传镜像,修改一下 docker-compose.yml 就行,明天我搞个教程吧

谢谢佬,已经可以了,Docker这边我直接挂载的二进制文件