go-proxy-bingai/README.md
2023-05-08 12:07:55 +08:00

139 lines
3.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# go-proxy-bing
一个用 GO 写的微软 Bing AI 的魔法服务。 使用微软原始页面简单定制,基本兼容微软 Bing AI 所有功能,无需登录即可畅聊。
⭐ 国内可用 (部署服务器需要直连 www.bing.com 不重定向 CN 才行)
⭐ 无需登录即可畅聊
⭐ 需要画图等高级功能时,可登录微软账号设置用户 Cookie 进行体验
⭐ 遇到一切问题,先点左下角 ![新主题](./docs/img/bing-clear.png) 试试不行使用刷新大法Shift + F5 或 Ctrl + Shift + R 或 右上角设置中的重置),最终大招就 清理浏览器缓存 及 Cookie 比如24小时限制、未登录提示等等
- [go-proxy-bing](#go-proxy-bing)
- [演示站点](#演示站点)
- [获取Cookie](#获取Cookie)
- [部署](#部署)
- [Docker](#Docker)
- [Release](#Release)
- [Railway](#Railway)
- [Vercel](#Vercel)
- [Render](#Render)
- [TODO](#TODO)
- 电脑端未登录状态
![电脑未登录](./docs/img/bing-nologin.png)
- 电脑端登录
![电脑端登录](./docs/img/bing-login.png)
- 电脑端画图
> ⭐ 需登录,并选择 更有创造力 对话模式
![电脑端画图](./docs/img/bing-draw.png)
- 手机端未登录状态
![手机端未登录](./docs/img/bing-m-nologin.png)
## 演示站点
### 甲骨文小鸡仔,轻虐
- https://bing.vcanbb.top
### Railway搭建
- https://bing-railway.vcanbb.top
- https://go-proxy-bingai-production.up.railway.app
### Vercel搭建
- https://bing-vercel.vcanbb.top
- https://go-proxy-bingai-git-master-adams549659584.vercel.app
### Render搭建
- https://bing-render.vcanbb.top
- https://go-proxy-bingai.onrender.com
## 获取Cookie
- 访问 https://www.bing.com/ 或 https://cn.bing.com/ ,登录
- F12 或 Ctrl + Shift + I 打开控制台
- 拿到 Cookie 后在网站设置用户Cookie弹窗填入即可。
![获取Cookie](./docs/img/bing-cookie.png)
## 部署
> 需 https 域名 (自行配置 nginx 等)
> 支持 Linux (amd64 / arm64)、Windows (amd64 / arm64)
### Docker
> 参考 [Dockerfile](./docker/Dockerfile) 、[docker-compose.yml](./docker/docker-compose.yml)
示例
```bash
# 运行容器 监听8080 端口
docker run -d -p 8080:8080 --name go-proxy-bingai --restart=unless-stopped adams549659584/go-proxy-bingai
```
### Release
在 [Github Releases](https://github.com/adams549659584/go-proxy-bingai/releases) 下载适用于对应平台的压缩包,解压后可得到可执行文件 go-proxy-bingai直接运行即可。
### Railway
> 主要配置 Dockerfile 路径 及 端口就可以
```bash
PORT=8080
RAILWAY_DOCKERFILE_PATH=docker/Dockerfile
```
一键部署,点这里 => [![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/template/uIckWS?referralCode=BBs747)
![Railway 模板部署](./docs/img/railway-1.png)
自行使用 Railway 部署配置如下
![Railway 环境变量](./docs/img/railway-2.png)
![Railway 域名](./docs/img/railway-3.png)
### Vercel
一键部署,点这里 => [![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/adams549659584/go-proxy-bingai&project-name=go-proxy-bingai&repository-name=go-proxy-bingai-vercel)
![Vercel 一键部署](./docs/img/vercel-1.png)
![Vercel 域名](./docs/img/vercel-2.png)
### Render
一键部署,点这里 => [![Deploy to Render](https://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy?repo=https://github.com/adams549659584/go-proxy-bingai)
![Render 一键部署](./docs/img/render-1.png)
![Render 域名](./docs/img/render-2.png)
## TODO
- [ ] 撰写
- [ ] Vue3 重构
- [ ] 提示词
- [ ] 保存历史消息
- [ ] 导出消息到本地Markdown、图片、PDF
- [ ] 简单访问权限控制