建议使用在线搭建,更加的方便。

我的new bing :

replit [daokunn.eu.org](NewBingGoGo:聊天啦啦啦啦 (exhausr.repl.co))
Railway ai.daokunn.fun

在线搭建

replit搭建

利用免费服务器容器+免费域名,搭建一款在线的New bing gpt4.0的智能机器人,搭建方法非常简单,无需chatgpt账号,无需梯子,没有任何使用限制!

思路如下:

创建机器人 :用replit项目创建机器人

监视机器人:这个机器人搭建成功之后,如果5分钟没有访问的,就会“销户”,所以我们需要一个“监视”。

添加域名: 虽然可以永久运行,但是国内是无法访问的,所以我们要域名。申请一个免费的域名,然后用cloudflare免费加速

创建机器人

先注册账号: replit

项目代码: NewBingGoGo-Web - Replit

  1. 点击项目代码右上角的 Fork

​ 耐心等待

image-20230609161544801

  1. 完事之后,进入一个界面,点击run

​ 等待5-10分钟

image-20230609161740488

  1. 会在右上角生成一个网址,复制并访问

image-20230609162206261

https://newbinggogo-web.exhausr.repl.co

监视

  1. 进行”监视”

​ 先去监视网站注册账号。

​ 邮箱验证成功后,点击我的设置,修改时区

image-20230609163319239

image-20230609163519977

  1. 在左上角添加新监视器

​ 按照下图填入

image-20230609163859236

查看所有活动是否如下图,有的需要等个两三分钟,注意耐心。

image-20230609164647853

弄好之后,机器人就会永久的监视。

添加域名

  1. 注册eu.org账号

永久免费域名申请:https://nic.eu.org

image-20230609165143104

image-20230609165236389

DNS域名:
dempsey.dnspod.net
edmund.dnspod.net

域名没问题是这样的

image-20230609165321909

报错自己去换域名,成功之后,需要等5-20天的审核。

未完待续https://www.youtube.com/watch?v=sDntYnFl7BU

所有工具

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
免费服务器:https://replit.com/

源码地址:https://replit.com/@jianjianai/NewBingGoGo-Web

监视网站:https://uptimerobot.com/

永久免费域名申请:https://nic.eu.org

DNS域名:
dempsey.dnspod.net
edmund.dnspod.net

地址生成器:https://www.meiguodizhi.com/

解析网站:https://www.cloudflare.com/

Railway

这个一个月不能超过500个小时。

一键部署,点这里 => Deploy on Railway

路径:docker/Dockerfile

端口:8080

image-20230609175931092

我的地址https://go-proxy-bingai-production-3757.up.railway.app/web/#/

image-20230609180838838

设置自定义域名可用在国内访问,我的是ai.daokunn.fun

本地部署

GitHub 免费开源项目:

go-proxy-bing

这款开源程序是基于微软 New Bing 用 Vue3 和 Go 定制的微软 New Bing 演示站点,拥有一致的 UI 体验,支持 ChatGPT 提示词,无需翻墙,国内可用,不再重定向 CN !兼容微软 Bing AI 几乎所有功能,无需登录即可畅聊。

A.本地部署方式:

1.下载 开源项目:go-proxy-bing 【点击下载】- 【注意:部分杀毒软件会误报,建议使用后面的方法进行安装】

2.Cloudflare 免费部署聊天服务器

具体步奏如下

选择Workers和Pages —> 概述

image-20230609172444793

选择创建应用程序

image-20230609172713061

名称随意,点击部署

image-20230609173014626

点击编辑代码

image-20230609173038840

删除所有代码,填充以下代码

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
const SYDNEY_ORIGIN = 'https://sydney.bing.com';
const KEEP_REQ_HEADERS = [
'accept',
'accept-encoding',
'accept-language',
'connection',
'cookie',
'upgrade',
'user-agent',
'sec-websocket-extensions',
'sec-websocket-key',
'sec-websocket-version',
'x-request-id',
'content-length',
'content-type',
'access-control-request-headers',
'access-control-request-method',
];
const IP_RANGE = [
['3.2.50.0', '3.5.31.255'], //192,000
['3.12.0.0', '3.23.255.255'], //786,432
['3.30.0.0', '3.33.34.255'], //205,568
['3.40.0.0', '3.63.255.255'], //1,572,864
['3.80.0.0', '3.95.255.255'], //1,048,576
['3.100.0.0', '3.103.255.255'], //262,144
['3.116.0.0', '3.119.255.255'], //262,144
['3.128.0.0', '3.247.255.255'], //7,864,320
];

/**
* 随机整数 [min,max)
* @param {number} min
* @param {number} max
* @returns
*/
const getRandomInt = (min, max) => Math.floor(Math.random() * (max - min)) + min;

/**
* ip 转 int
* @param {string} ip
* @returns
*/
const ipToInt = (ip) => {
const ipArr = ip.split('.');
let result = 0;
result += +ipArr[0] << 24;
result += +ipArr[1] << 16;
result += +ipArr[2] << 8;
result += +ipArr[3];
return result;
};

/**
* int 转 ip
* @param {number} intIP
* @returns
*/
const intToIp = (intIP) => {
return `${(intIP >> 24) & 255}.${(intIP >> 16) & 255}.${(intIP >> 8) & 255}.${intIP & 255}`;
};

const getRandomIP = () => {
const randIndex = getRandomInt(0, IP_RANGE.length);
const startIp = IP_RANGE[randIndex][0];
const endIp = IP_RANGE[randIndex][1];
const startIPInt = ipToInt(startIp);
const endIPInt = ipToInt(endIp);
const randomInt = getRandomInt(startIPInt, endIPInt);
const randomIP = intToIp(randomInt);
return randomIP;
};

/**
* home
* @param {string} pathname
* @returns
*/
const home = async (pathname) => {
const baseUrl = 'https://raw.githubusercontent.com/adams549659584/go-proxy-bingai/master/';
let url;
// if (pathname.startsWith('/github/')) {
if (pathname.indexOf('/github/') === 0) {
url = pathname.replace('/github/', baseUrl);
} else {
url = baseUrl + 'cloudflare/index.html';
}
const res = await fetch(url);
const newRes = new Response(res.body, res);
if (pathname === '/') {
newRes.headers.delete('content-security-policy');
newRes.headers.set('content-type', 'text/html; charset=utf-8');
}
return newRes;
};

export default {
/**
* fetch
* @param {Request} request
* @param {*} env
* @param {*} ctx
* @returns
*/
async fetch(request, env, ctx) {
const currentUrl = new URL(request.url);
// if (currentUrl.pathname === '/' || currentUrl.pathname.startsWith('/github/')) {
if (currentUrl.pathname === '/' || currentUrl.pathname.indexOf('/github/') === 0) {
return home(currentUrl.pathname);
}
const targetUrl = new URL(SYDNEY_ORIGIN + currentUrl.pathname + currentUrl.search);

const newHeaders = new Headers();
request.headers.forEach((value, key) => {
// console.log(`old : ${key} : ${value}`);
if (KEEP_REQ_HEADERS.includes(key)) {
newHeaders.set(key, value);
}
});
newHeaders.set('host', targetUrl.host);
newHeaders.set('origin', targetUrl.origin);
newHeaders.set('referer', 'https://www.bing.com/search?q=Bing+AI');
const randIP = getRandomIP();
// console.log('randIP : ', randIP);
newHeaders.set('X-Forwarded-For', randIP);
const oldUA = request.headers.get('user-agent');
const isMobile = oldUA.includes('Mobile') || oldUA.includes('Android');
if (isMobile) {
newHeaders.set(
'user-agent',
'Mozilla/5.0 (iPhone; CPU iPhone OS 15_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.7 Mobile/15E148 Safari/605.1.15 BingSapphire/1.0.410427012'
);
} else {
newHeaders.set('user-agent', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36 Edg/113.0.1774.35');
}

// newHeaders.forEach((value, key) => console.log(`${key} : ${value}`));
const newReq = new Request(targetUrl, {
method: request.method,
headers: newHeaders,
body: request.body,
});
// console.log('request url : ', newReq.url);
const res = await fetch(newReq);
return res;
},
};

保存并部署

image-20230609173902920

我的地址为BingAI - 聊天 (daokun.workers.dev),在浏览器打开如下:

image-20230609173939797

接下来打开下载的工具

image-20230609174142545

image-20230609174226404

在浏览器输入127.0.0.1:8080

image-20230609174325700

聊天服务器设置 –> 自定义 —> 复制链接BingAI - 聊天 (daokun.workers.dev),检测是否可用

image-20230609174638277

这个域名在国内是无法使用的,回到下图位置,点击触发器

image-20230609174806754

go-proxy-bing参考文章:零度解说