Skip to content

Commit

Permalink
[Add] 🚀 Sync latest NewBing
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry-zklcdc committed May 8, 2024
1 parent 9992862 commit db77e6f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 15 deletions.
14 changes: 9 additions & 5 deletions frontend/public/js/bing/chat/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ _w['_sydConvConfig'] = {
enableGetChats: true,
enableThreadSync: true,
enableFlux3P: true,
sydOptionSets: 'uquopt,sunoupsell,hourthrot,codeintfile,gndlogcf,vidtoppb,gptv1desc2',
voiceSrOptions: 'cdxslang',
sydIDs: 'bgstreamcf,ntbkgoldcf,qnacnt,nodescf,slang,cdxslang,vnextr100,vnext100,vnextvoice,315minlengh,crtrv3,romiccf,scmcbasecf,ssadsno2tcfg,adsltmdsc,cmcpupsalltf,sunoupsell,0215wcrwips0,313dynaplfs0,0312hrthrot,0228elecgnds0,bingfc,228pyfile,ecipc,xapmons0,kcclickthru,kcclickt,0225unsticky0,satrcas0,308videopb,0317dc1pros0',
sydOptionSets: 'bflxvoice,enstmdf,rcaldictans,gndlogcf,sapsgrd,localreducehho,paydetec,gptv1desc3,gptvmv3,gptvnocon',
voiceSrOptions: 'segto07,tso15',
sydIDs: 'orcacrtrnewcf,codecrtv2cf,tcrtrv3,voicedup2,enziknavc,translnochr,dynhtrr,caccaconsccf,415dicts0,0411dylbs0,0306flows0,kcgmm2cf,sapsgrd,0404redhoo,418paydetec,0325phones0,reduceretrycf,3daytone,exptone,sstoprevcf',
balTone: 'galileo',
userMailId: randomString(Math.round(Math.random() * 16)) + '@' + randomLowercaseString(Math.round(Math.random() * 12)) + '.com',
username: randomString(Math.round(Math.random() * 16)),
balTone: 'galileo',
Expand All @@ -42,7 +43,7 @@ _w['_sydConvConfig'] = {
freeSydneyDesignerIconUrl: '/rp/l8iFubC9EgDGvKo7xeNIvSQwikU.png',
freeSydneyShopperIconUrl: '/rp/k_s3zfEmrUri89BYcZH2O4eCqlU.png',
userAnID: crypto.randomUUID().replace(/-/g, '').toUpperCase(),
PLoadIID: 'SERP.5090',
PLoadIID: 'SERP.5089',
isMSAAuthenticated: true,
enableThreads: true,
isBingUserSignedIn: true,
Expand Down Expand Up @@ -102,6 +103,9 @@ _w['_sydConvConfig'] = {
},
{
value: '.html'
},
{
value: '.pdf'
}],
audioFileExtensions: [{
value: '.wav'
Expand Down Expand Up @@ -1657,7 +1661,7 @@ if (UserStoreGet('copilotProEnable')) {
_w['_sydConvConfig']['enableGPT4TurboSwitch'] = true
}

_G.Region = UserStoreGet('langRegion') || 'CN'
// _G.Region = UserStoreGet('langRegion') || 'CN'

_w['_sydConvConfig']['enableAutoReopenMic'] = UserStoreGet('autoReopenMic') || true
_w['_sydConvConfig']['enableAutoReopenMicTTSStopped'] = UserStoreGet('autoReopenMic') || true
4 changes: 2 additions & 2 deletions frontend/public/js/bing/chat/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
}
)(_w.onload, _w.si_PP);
_w.rms.js(
{ 'A:rms:answers:Shared:BingCore.Bundle': '/rp/l5qlKyb5rPv_F2YU5blrntiAB0c.br.js' },
{ 'A:rms:answers:Shared:BingCore.Bundle': '/rp/nAb2_uMWSHAhScje1ODrwe4cVoA.br.js' },
// { 'A:rms:answers:Web:FreeSydneyHelper': '/rp/cfhgV3_HFyB3URSxigzE0QzgsF8.br.js' },
// { 'A:rms:answers:Web:SydneyFSCHelper': '/rp/wJbTArpXX7iY8vTObyrSJ0XZMCE.br.js' },
{ 'A:rms:answers:VisualSystem:ConversationScope': '/rp/ascyKFaOzJnUTZ_D-Mv819BZ0Go.br.js' },
{ 'A:rms:answers:CodexBundle:cib-bundle': '/rp/LV73AQ4q5yX1zii25TpIUOxTA9M.br.js' },
{ 'A:rms:answers:CodexBundle:cib-bundle': '/rp/V6IKxmcE5rJ2bGlG-v3sIvR-550.br.js' },
{ 'A:rms:answers:SharedStaticAssets:speech-sdk': '/rp/bll21ZO27j3KPE27uQBxt24c2Fw.br.js' },
{ 'A:rms:answers:Web:SydneyWelcomeScreenBase':'/rp/KgDPK_mKWjMgWe6o0SKA9dfE00Y.br.js' },
{ 'A:rms:answers:Web:SydneyWelcomeScreen':'/rp/sNzL8vfHHNmyqYOSQey9fNYd3kI.br.js' },
Expand Down
20 changes: 12 additions & 8 deletions frontend/public/js/bing/chat/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,22 +206,22 @@ try {
console.error(error);
}
_G = {
Region: 'CN',
Region: 'US',
Lang: 'zh-CN',
ST: typeof si_ST !== 'undefined' ? si_ST : new Date(),
Mkt: 'en-US',
RevIpCC: 'us',
Mkt: 'zh-CN',
RevIpCC: 'sg',
RTL: false,
Ver: '34',
Ver: '19',
IG: randomCapitalString(32),
EventID: randomLowercaseString(32),
V: 'web',
P: 'SERP',
DA: 'PUSE01',
SUIH: randomString(22),
SUIH: randomString(14) + '-SppuprA',
adc: 'b_ad',
// logsb 启用 sendBeacon 推送日志,并在 sendBeacon 阻止
EF: { cookss: 1, bmcov: 1, crossdomainfix: 1, bmasynctrigger: 1, bmasynctrigger3: 1, getslctspt: 1, newtabsloppyclick: 1, chevroncheckmousemove: 1, sharepreview: 1, sharenewlayout: 1, cdxsugchip2: 1 },
EF: { cookss: 1, bmcov: 1, crossdomainfix: 1, bmasynctrigger: 1, bmasynctrigger3: 1, getslctspt: 1, newtabsloppyclick: 1, chevroncheckmousemove: 1, sharepreview: 1, shareoutimage: 1, sharefixreadnum: 1, chatskip2content: 1 },
gpUrl: '/fd/ls/GLinkPing.aspx?',
SB: false,
TIP: 'L2yDt6NHpVg74zXbiBVawp2LXBqjJe69YXaqikLo6FSPRXTBSUtR6ThZ41EAwzei6dMFnTLBw6ngU32nwwgiSsRc1yemqufobYSrv96ii7qArPE9nssRwizpWUHDtJr8vSzmbjS',
Expand All @@ -232,7 +232,7 @@ _G = {
AT: 'Harry-zklcdc/go-proxy-bingai'
};
_G.lsUrl = '/fd/ls/l?IG=' + _G.IG;
curUrl = '/search';
curUrl = '/chat';
_G.XLS = '/web/xls.aspx';
_G.XLS = '/web/xls.aspx';
_G.XLSM = '/threshold/xls_master.aspx';
Expand All @@ -246,5 +246,9 @@ function si_T (a) {
// }
return true;
}
_G.NTT = "600000";
_G.RTO = "86400000";
_G.CTT = '3000';
_G.BNFN = 'Default';;
_G.BNFN = 'Default';
_G.LG = "160";
_G.FilterFlareInterval = 5;;

0 comments on commit db77e6f

Please sign in to comment.