waylaidwanderer / node-chatgpt-api

A client implementation for ChatGPT and Bing AI. Available as a Node.js module, REST API server, and CLI app.
https://www.npmjs.com/package/@waylaidwanderer/chatgpt-api
MIT License
4.2k stars 738 forks source link

Bing Jailbreak No Longer Works #378

Closed rootytemp closed 1 year ago

rootytemp commented 1 year ago

Describe the bug It's been working for a few days and now i get this bug (with a redirect as well)

Error: /turing/conversation/create: failed to parse response body.

<!DOCTYPE html><html dir="ltr" lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:Web="http://schemas.live.com/Web/"><script type="text/javascript" nonce="CqbirF2WQ32WskfGdsbJ9yILv4h4rB+QUdKptAogARU=" >//<![CDATA[
si_ST=new Date
//]]></script><head><!--pc--><title>Bing</title><meta content="text/html; charset=utf-8" http-equiv="content-type" /><meta name="referrer" content="origin-when-cross-origin" /><link href="/sa/simg/favicon-trans-bg-blue-mg.ico" data-orighref="" rel="icon" /><link href="/sa/simg/Roboto_Regular.woff2" rel="preload" type="font/woff2" as="font" crossorigin="anonymous" /><link href="/sa/simg/Roboto_Semibold.woff2" rel="preload" type="font/woff2" as="font" crossorigin="anonymous" /><script type="text/javascript" nonce="CqbirF2WQ32WskfGdsbJ9yILv4h4rB+QUdKptAogARU=">//<![CDATA[
_G={Region:"AU",Lang:"en-US",ST:(typeof si_ST!=='undefined'?si_ST:new Date),Mkt:"en-US",RevIpCC:"au",RTL:false,Ver:"22",IG:"9484710B278F4852AE530D77D93611C3",EventID:"646c0bf0c9d447e4a841017756e1d413",V:"web",P:"conversationalexperience",DA:"MWHE01",CID:"2DF31C3D759B6DAA336B0F2774D76C7B",SUIH:"j37QMLv-OvKKO7Q3xS48AQ",adc:"b_ad",EF:{bmcov:1,crossdomainfix:1,bmasynctrigger:1,bmasynctrigger3:1,newtabsloppyclick:1,chevroncheckmousemove:1},gpUrl:"\/fd\/ls\/GLinkPing.aspx?" }; _G.lsUrl="/fd/ls/l?IG="+_G.IG+"&CID="+_G.CID ;curUrl="https:\/\/www.bing.com\/turing\/conversation\/create";function si_T(a){ if(document.images){_G.GPImg=new Image;_G.GPImg.src=_G.gpUrl+'IG='+_G.IG+'&CID='+_G.CID+'&'+a;}return true;}_G.NTT="600000";_G.CTT="3000";;var _w=window,_d=document,sb_ie=window.ActiveXObject!==undefined,sb_i6=sb_ie&&!_w.XMLHttpRequest,_ge=function(n){return _d.getElementById(n)},_qs=function(n,t){return t=typeof t=="undefined"?_d:t,t.querySelector?t.querySelector(n):null},sb_st=function(n,t){return setTimeout(n,t)},sb_rst=sb_st,sb_ct=function(n){clearTimeout(n)},sb_gt=function(){return(new Date).getTime()},sj_gx=function(){return sb_i6?new ActiveXObject("MSXML2.XMLHTTP"):new XMLHttpRequest};_w.sj_ce=function(n,t,i){var r=_d.createElement(n);return t&&(r.id=t),i&&(r.className=i),r};_w.sj_cook=_w.sj_cook||{get:function(n,t){var i=_d.cookie.match(new RegExp("\\b"+n+"=[^;]+")),r;return t&&i?(r=i[0].match(new RegExp("\\b"+t+"=([^&]*)")),r?r[1]:null):i?i[0]:null}};_w.sk_merge||(_w.sk_merge=function(n){_d.cookie=n});var amd,define,require;(function(n){function e(n,i,u){t[n]||(t[n]={dependencies:i,callback:u},r(n))}function r(n){if(n){if(n)return u(n)}else{if(!f){for(var r in t)u(r);f=!0}return i}}function u(n){var s,e;if(i[n])return i[n];if(t.hasOwnProperty(n)){var h=t[n],f=h.dependencies,l=h.callback,a=r,o={},c=[a,o];if(f.length<2)throw"invalid usage";else if(f.length>2)for(s=f.slice(2,f.length),e=0;e<s.length;e++)c.push(u(s[e]));return l.apply(this,c),i[n]=o,o}}var t={},i={},f=!1;n.define=e;n.require=r})(amd||(amd={}));define=amd.define;require=amd.require;function lb(){_w.si_sendCReq&&sb_st(_w.si_sendCReq,800);_w.lbc&&_w.lbc()};define("shared",["require","exports"],function(n,t){function s(n,t){for(var r=n.length,i=0;i<r;i++)t(n[i])}function r(n){for(var i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];return function(){n.apply(null,i)}}function u(n){i&&event&&(event.returnValue=!1);n&&typeof n.preventDefault=="function"&&n.preventDefault()}function f(n){i&&event&&(event.cancelBubble=!0);n&&typeof n.stopPropagation=="function"&&n.stopPropagation()}function e(n,t,i){for(var r=0;n&&n.offsetParent&&n!=(i||document.body);)r+=n["offset"+t],n=n.offsetParent;return r}function o(){return(new Date).getTime()}function h(n){return i?event:n}function c(n){return i?event?event.srcElement:null:n.target}function l(n){return i?event?event.fromElement:null:n.relatedTarget}function a(n){return i?event?event.toElement:null:n.relatedTarget}function v(n,t,i){while(n&&n!=(i||document.body)){if(n==t)return!0;n=n.parentNode}return!1}function y(n){window.location.href=n}function p(n,t){n&&(n.style.filter=t>=100?"":"alpha(opacity="+t+")",n.style.opacity=t/100)}t.__esModule=!0;t.getTime=t.getOffset=t.stopPropagation=t.preventDefault=t.wrap=t.forEach=void 0;var i=sb_ie;t.forEach=s;t.wrap=r;t.preventDefault=u;t.stopPropagation=f;t.getOffset=e;t.getTime=o;window.sj_b=document.body;window.sb_de=document.documentElement;window.sj_wf=r;window.sj_pd=u;window.sj_sp=f;window.sj_go=e;window.sj_ev=h;window.sj_et=c;window.sj_mi=l;window.sj_mo=a;window.sj_we=v;window.sb_gt=o;window.sj_so=p;window.sj_lc=y});define("env",["require","exports","shared"],function(n,t,i){function v(n,t){return t.length&&typeof n=="function"?function(){return n.apply(null,t)}:n}function y(n,t){var e=[].slice.apply(arguments).slice(2),i=v(n,e),u;return typeof i=="function"&&(u=window.setImmediate&&!window.setImmediate.Override&&(!t||t<=16)?"i"+setImmediate(i):o(i,t),f[r]=u,r=(r+1)%a),u}function p(n,t){var r=[].slice.apply(arguments).slice(2),i=l(v(n,r),t);return e[u]=i,u=(u+1)%a,i}function w(){h.forEach(f,s);h.forEach(e,window.clearInterval);r=u=e.length=f.length=0}function s(n){n!=null&&(typeof n=="string"&&n.indexOf("i")===0?window.clearImmediate(parseInt(n.substr(1),10)):c(n))}var h=i,f=[],e=[],o,c,l,a=1024,r=0,u=0;o=window.setTimeout;t.setTimeout=y;l=window.setInterval;t.setInterval=p;t.clear=w;c=window.clearTimeout;t.clearTimeout=s;window.sb_rst=o;window.setTimeout=window.sb_st=y;window.setInterval=window.sb_si=p;window.clearTimeout=window.sb_ct=s});define("event.custom",["require","exports","shared","env"],function(n,t,i,r){function f(n){return u[n]||(u[n]=[])}function e(n,t){n.d?l.setTimeout(c.wrap(n,t),n.d):n(t)}function v(n,t,i){var r,f;for(r in u)f=i?t&&r.indexOf(t)===0:!(r.indexOf(a)===0)&&!(t&&r.indexOf(t)===0)&&!(n!=null&&n[r]!=null),f&&delete u[r]}function o(n){for(var t=f(n),u=t.e=arguments,i,r=0;r<t.length;r++)if(t[r].alive)try{e(t[r].func,u)}catch(o){i||(i=o)}if(i)throw i;}function s(n,t,i,r){var u=f(n);t&&(t.d=r,u.push({func:t,alive:!0}),i&&u.e&&e(t,u.e))}function h(n,t){for(var i=0,r=u[n];r&&i<r.length;i++)if(r[i].func==t&&r[i].alive){r[i].alive=!1;break}}var c=i,l=r,u={},a="ajax.";t.reset=v;t.fire=o;t.bind=s;t.unbind=h;_w.sj_evt={bind:s,unbind:h,fire:o}});define("event.native",["require","exports"],function(n,t){function r(n,t,r,u){var f=n===window||n===document||n===document.body;n&&(f&&t=="load"?i.bind("onP1",r,!0):f&&t=="unload"?i.bind("unload",r,!0):n.addEventListener?n.addEventListener(t,r,u):n.attachEvent?n.attachEvent("on"+t,r):n["on"+t]=r)}function u(n,t,r,u){var f=n===window||n===document||n===document.body;n&&(f&&t=="load"?i.unbind("onP1",r):f&&t=="unload"?i.unbind("unload",r):n.removeEventListener?n.removeEventListener(t,r,u):n.detachEvent?n.detachEvent("on"+t,r):n["on"+t]=null)}t.__esModule=!0;t.unbind=t.bind=void 0;var i=n("event.custom");t.bind=r;t.unbind=u;window.sj_be=r;window.sj_ue=u});define("dom",["require","exports"],function(n,t){function f(n,t){function s(n,t,r,f){r&&u.unbind(r,f,s);c.bind("onP1",function(){if(!n.l){n.l=1;var r=i("script");r.setAttribute("data-rms","1");r.src=(t?"/fd/sa/"+_G.Ver:"/sa/"+_G.AppVer)+"/"+n.n+".js";_d.body.appendChild(r)}},!0,5)}for(var f=arguments,e,o,r=2,l={n:n};r<f.length;r+=2)e=f[r],o=f[r+1],u.bind(e,o,h.wrap(s,l,t,e,o));r<3&&s(l,t)}function e(){var n=_d.getElementById("ajaxStyles");return n||(n=_d.createElement("div"),n.id="ajaxStyles",_d.body.insertBefore(n,_d.body.firstChild)),n}function l(n){var t=i("script");t.type="text/javascript";t.text=n;t.setAttribute("data-bing-script","1");document.body.appendChild(t);r.setTimeout(function(){document.body.removeChild(t)},0)}function a(n){var t=i("script");t.type="text/javascript";t.src=n;t.setAttribute("crossorigin","anonymous");t.onload=r.setTimeout(function(){document.body.removeChild(t)},0);document.body.appendChild(t)}function o(n){var t=s("ajaxStyle");t||(t=i("style"),t.setAttribute("data-rms","1"),t.id="ajaxStyle",e().appendChild(t));t.textContent!==undefined?t.textContent+=n:t.styleSheet.cssText+=n}function v(n,t){for(var i=Element.prototype,r=i.matches||i.msMatchesSelector;n!=null;){if(r.call(n,t))return n;n=n.parentElement}return null}function s(n){return _d.getElementById(n)}function i(n,t,i){var r=_d.createElement(n);return t&&(r.id=t),i&&(r.className=i),r}t.__esModule=!0;t.includeCss=t.includeScriptReference=t.includeScript=t.getCssHolder=t.loadJS=void 0;var r=n("env"),h=n("shared"),u=n("event.native"),c=n("event.custom");t.loadJS=f;t.getCssHolder=e;t.includeScript=l;t.includeScriptReference=a;t.includeCss=o;_w._ge=s;_w.sj_ce=i;_w.sj_jb=f;_w.sj_ic=o;_w.sj_fa=v});define("cookies",["require","exports"],function(n,t){function a(){var n=location.protocol==="https:";return n?";secure":""}function v(){return typeof _G!="undefined"&&_G.EF!==undefined&&_G.EF.cookss!==undefined&&_G.EF.cookss===1}function f(){var n=location.hostname.match(/([^.]+\.[^.]*)$/);return n?";domain="+n[0]:""}function e(n,t,i,r,u){var s=f(),h=r&&r>0?r*6e4:63072e6,c=new Date((new Date).getTime()+Math.min(h,63072e6)),e="",o;v()&&(o=a(),e=o+(u?";SameSite="+u:";SameSite=None"));document.cookie=n+s+(t?";expires="+c.toGMTString():"")+(i?";path="+i:"")+e}function o(n,t,r,u,f){if(!i){var o=n+"="+t;e(o,r,u,f)}}function s(){return!i}function r(n,t){var r,u;return i?null:(r=document.cookie.match(new RegExp("\\b"+n+"=[^;]+")),t&&r)?(u=r[0].match(new RegExp("\\b"+t+"=([^&]*)")),u?u[1]:null):r?r[0]:null}function h(n,t,u,f,o,s){var l,h,c,a;i||(h=t+"="+u,c=r(n),c?(a=r(n,t),l=a?c.replace(t+"="+a,h):c+"&"+h):l=n+"="+h,e(l,f,o,s))}function c(n,t){if(!i){var r=n+"=",e=f();document.cookie=r+e+";expires="+u+(t?";path="+t:"")}}var i,u,l;t.__esModule=!0;t.clear=t.set=t.get=t.areCookiesAccessible=t.setNoCrumbs=void 0;i=!1;u=new Date(0).toGMTString();try{l=document.cookie}catch(y){i=!0}t.setNoCrumbs=o;t.areCookiesAccessible=s;t.get=r;t.set=h;t.clear=c;window.sj_cook={get:r,set:h,setNoCrumbs:o,clear:c,areCookiesAccessible:s}});var sj_anim=function(n){var s=25,t=this,c,u,h,f,e,o,l,i,r;t.init=function(n,s,a,v,y){if(c=n,e=s,o=a,l=v,r=y,v==0){f=h;r&&r();return}i||(i=e);u||t.start()};t.start=function(){h=sb_gt();f=Math.abs(o-i)/l*s;u=setInterval(t.next,s)};t.stop=function(){clearInterval(u);u=0};t.next=function(){var u=sb_gt()-h,s=u>=f;i=e+(o-e)*u/f;s&&(t.stop(),i=o);n(c,i);s&&r&&r()};t.getInterval=function(){return s}};var sj_fader=function(){return new sj_anim(function(n,t){sj_so(n,t)})};sj_fade=new function(){function n(n,t,i,r,u,f,e){var o=n.fader;if(o){if(e==n.fIn)return}else o=sj_fader(),n.fader=o;u&&u();o.init(n,t,i,r,f);n.fIn=e}this.up=function(t,i,r){function u(){t.style.visibility="visible"}n(t,0,100,i,u,r,1)};this.down=function(t,i,r){function u(){t.style.visibility="hidden";r&&r()}n(t,100,0,i,0,u,0)}};
//]]></script><style type="text/css">body{min-width:1000px}#b_header{margin-bottom:0 !important}#b_content_error{width:100%;background-color:#d2d2d2}a{color:#36b}#b_header{margin-bottom:0}.errorArea{font:18px/normal "Segoe UI",Arial,Helvetica,Sans-Serif;line-height:23px;color:#333}#b_content_error .errorArea .error{padding-top:60px;width:800px;text-align:center;margin:auto;padding-bottom:120px}#b_content_error .errorArea .error .container{margin-bottom:20px}#b_content_error .errorArea .error .title{font-family:Segoe UI Semilight,"Segoe UI",Arial,Helvetica,Sans-Serif;font-size:40px;line-height:48px;color:#333;margin-bottom:25px}#b_content_error .errorArea .error .description{margin-bottom:15px;white-space:nowrap}.description a{margin-left:5px}@font-face{font-family:'Roboto Light';src:url(/sa/simg/Roboto_Light.woff2) format('woff2');unicode-range:U+0-FF,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2212,U+2215}@font-face{font-family:'Roboto';src:url(/sa/simg/Roboto_Regular.woff2) format('woff2');unicode-range:U+0-FF,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2212,U+2215}@font-face{font-family:'Roboto Semibold';src:url(/sa/simg/Roboto_Semibold.woff2) format('woff2');unicode-range:U+0-FF,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2212,U+2215}@font-face{font-family:'Roboto';font-weight:200;src:url(/sa/simg/Roboto_Light.woff2) format('woff2');unicode-range:U+0-FF,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2212,U+2215}@font-face{font-family:'Roboto';font-weight:300;src:url(/sa/simg/Roboto_Light.woff2) format('woff2');unicode-range:U+0-FF,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2212,U+2215}@font-face{font-family:'Roboto';font-weight:600;src:url(/sa/simg/Roboto_Semibold.woff2) format('woff2');unicode-range:U+0-FF,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2212,U+2215}@font-face{font-family:'Roboto';font-weight:700;src:url(/sa/simg/Roboto_Semibold.woff2) format('woff2');unicode-range:U+0-FF,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2212,U+2215}.sw_ddbl:after,.sw_ddbk:after,.sw_ddw:after,.sw_ddgy:after,.sw_ddgn:after,.sw_st:after,.sw_sth:after,.sw_ste:after,.sw_st2:after,.sw_sth2:after,.sw_plus:after,.sw_minus:after,.sw_tpcg:after,.sw_tpcbl:after,.sw_tpcw:after,.sw_tpcbk:after,.sw_close:after,.sb_pagN:after,.sb_pagP:after,.sw_up:after,.sw_down:after,.b_expandToggle:after,.b_fLogo:after,.b_cm:after,.sw_lpoi:after{position:relative}.sw_ddbl:after,.sw_ddbk:after,.sw_ddw:after,.sw_ddgy:after,.sw_ddgn:after,.sw_st:after,.sw_sth:after,.sw_ste:after,.sw_st2:after,.sw_sth2:after,.sw_plus:after,.sw_minus:after,.sw_tpcg:after,.sw_tpcbl:after,.sw_tpcw:after,.sw_tpcbk:after,.sw_close:after,.sb_pagN:after,.sb_pagP:after,.sw_up:after,.sw_down:after,.b_expandToggle:after,.b_fLogo:after,.b_cm:after,.sw_lpoi:after{content:url(/rp/tfpoqzYv42r7UjQvzw0PVIoT2nY.png)}.sw_ddbl,.sw_ddbk,.sw_ddw,.sw_ddgy,.sw_ddgn,.sw_st,.sw_sth,.sw_ste,.sw_st2,.sw_sth2,.sw_plus,.sw_minus,.sw_tpcg,.sw_tpcbl,.sw_tpcw,.sb_clrhov,.sb_pagN,.sb_pagP,.sw_up,.sw_down,.b_expandToggle,.b_fLogo,.b_cm,.sw_lpoi{display:inline-block;position:relative;overflow:hidden;direction:ltr}.sw_ddbl:after,.sw_ddbk:after,.sw_ddw:after,.sw_ddgy:after,.sw_ddgn:after,.sw_st:after,.sw_sth:after,.sw_ste:after,.sw_st2:after,.sw_plus:after,.sw_minus:after,.sw_tpcg:after,.sw_tpcbl:after,.sw_tpcw:after,.sw_tpcbk:after,.sb_pagN:after,.sb_pagP:after,.sw_up:after,.sw_down:after,.b_expandToggle:after,.b_fLogo:after,.b_cm:after,.sw_lpoi:after{display:inline-block;transform:scale(.5)}.sw_up:after{display:inline-block;transform:scale(.5,-.5) translateY(-20px)}.sw_sth2:after{display:inline-block;transform:scale(-.5,.5) translateX(56px)}.sw_tpcg,.b_expandToggle,.b_fLogo{display:block}.b_searchbox{padding-right:0}.sw_st,.sw_sth,.sw_ste,.sw_st2,.sw_sth2{height:12px;width:12px}.sw_st:after{transform-origin:-68px -40px}.sw_st2:after{transform-origin:-124px -40px}.sw_sth:after{transform-origin:-152px -40px}.sw_sth2:after{transform-origin:40px -68px}.sw_ste:after{transform-origin:-96px -40px}.sw_ddbl,.sw_ddbk,.sw_ddw,.sw_ddgy,.sw_ddgn{height:4px;width:7px}.sw_ddbl:after,.sw_ddbk:after,.sw_ddw:after,.sw_ddgy:after{transform-origin:-180px -52px}.sw_ddgn:after{transform-origin:-180px -40px}.sw_tpcg,.sw_tpcbl,.sw_tpcw,.sw_tpcbk{height:12px;width:12px}.sw_tpcg:after,.sw_tpcbl:after,.sw_tpcw:after,.sw_tpcbk:after{transform-origin:-218px -40px}.sw_plus{height:8px;width:8px}.sw_plus:after{transform-origin:-198px -40px}.sb_pagP,.sb_pagN{height:40px;width:40px}.shop_page .sb_pagP:after,.bf_wrapper .sb_pagP:after,b_fpage .sb_pagP:after{transform-origin:-430px 0}.shop_page .sb_pagP:hover:after,.shop_page .sb_pagP:active:after,.shop_page .sb_pagP:focus:after,.bf_wrapper .sb_pagP:hover:after,.bf_wrapper .sb_pagP:active:after,.bf_wrapper .sb_pagP:focus:after,.b_fpage .sb_pagP:hover:after,.b_fpage .sb_pagP:active:after,.b_fpage .sb_pagP:focus:after{transform-origin:-514px 0}.shop_page .sb_pagN:after,.bf_wrapper .sb_pagN:after,.b_fpage .sb_pagN:after{transform-origin:-430px 0}.shop_page .sb_pagN:hover:after,.shop_page .sb_pagN:active:after,.shop_page .sb_pagN:focus:after,.bf_wrapper .sb_pagN:hover:after,.bf_wrapper .sb_pagN:active:after,.bf_wrapper .sb_pagN:focus:after,.b_fpage .sb_pagN:hover:after,.b_fpage .sb_pagN:active:after,.b_fpage .sb_pagN:focus:after{transform-origin:-514px 0}@media screen and (-ms-high-contrast:active){.sb_pagN:after,.sb_pagP:after{content:""}li.b_pag a.sb_pagN,li.b_pag a.sb_pagP{width:auto}li.b_pag a.b_roths{transform:rotate(0deg)}.b_pag .sw_next,.b_pag .sw_prev{display:block}}.b_expandToggle,.sw_up,.sw_down{height:10px;width:16px}.b_expandToggle:after,.sw_up:after,.sw_down:after{transform-origin:-348px 0}.b_active .b_expandToggle:after,.sw_up:after{transform-origin:-348px 0}.b_icon{width:20px;height:20px;z-index:0}.b_cm{height:10px;width:12px}.b_cm:after{transform-origin:-152px -68px}.sw_lpoi{height:12px;width:8px}.sw_lpoi:after{transform-origin:-48px -40px}.b_pag .b_roths{transform:rotate(180deg)}z{a:1}z{a:1}html,body #b_results .b_no{background-color:#fff}#b_results>li a{color:#4007a2}#b_results>li a:visited{color:#4007a2}#b_results>li{background-color:#fff}.ccmc{background-color:#ccc}.ccmc:active{background-color:#36b}#b_tween .b_selected,div.b_dropdown .b_selected,#b_tween a.ftrH.b_selected:hover{background:#e1e0df}#b_tween .b_toggle:hover,#b_tween .ftrH:hover{background:#f2f2f2}.b_scroll{background:#999;border-color:#999}.b_scroll:hover{background:#4d4d4d}.b_dropdown{background-color:#fff;border-color:#e5e5e5}.ctxt,select,input[type="text"]{color:#444;border-color:#ddd}.b_dark select{background-color:#292827}.ccal{border-color:#ddd}.ccal:hover,.ctxt:hover,select:hover,input[type="text"]:hover{box-shadow:0 1px 2px 0 rgba(0,0,0,.1);-webkit-box-shadow:0 1px 2px 0 rgba(0,0,0,.1)}.b_dark select:hover{background-color:#292827}.ctxt:focus,select:focus,input[type="text"]:focus{color:#444;border-color:#919191;box-shadow:0 1px 2px 0 rgba(0,0,0,.1);-webkit-box-shadow:0 1px 2px 0 rgba(0,0,0,.1)}.ccal input[type="text"],.ccal input[type="text"]:hover,.ccal input[type="text"]:focus{color:#444}.ccal.ccal_rfs input[type="text"],.ccal.ccal_rfs input[type="text"]:hover,.ccal.ccal_rfs input[type="text"]:focus{color:#666}label{color:#767676}#b_results ::placeholder{color:#767676;opacity:1}#b_results :-ms-input-placeholder{color:#767676}#b_results ::-webkit-input-placeholder{color:#767676}#b_results input[type="text"]:disabled{color:#ccc}a,#b_tween a:visited,#b_results .b_no a{color:#4007a2}a:visited,#b_results>li a:visited{color:#4007a2}.trgr_icon .c_tlbxTrgIcn.sw_css{border-color:#006d21 transparent}.b_posText{color:#006d21}.b_negText{color:#c80000}#b_context .b_entityTitle,#b_results .b_entityTitle{color:#444}#b_context .b_entitySubTitle,#b_results .b_entitySubTitle{color:#767676}body,.b_promoteText,#b_tween a.ftrH:hover,.b_expando,.b_expando h2,.b_expando h3,.b_expando h4,.b_expando .b_defaultText,.b_active a,.b_active a:visited,.b_active a:hover,#b_results>.b_pag a,#b_results .b_no,#b_content a.cbl:visited,#b_content a.cbl{color:#71777d}#b_tween,#b_tween a.ftrH{color:#70757a}.b_top,.b_top .b_promoteText{color:#444}.b_alert,.sb_alert,.b_pAlt,#b_results .b_no .b_alert,#b_results .b_no .sb_alert,#b_results .b_no .b_pAlt{color:#d90026}#b_results .b_alert,#b_results .sb_alert,#b_results .b_pAlt{color:#d90026}.b_demoteText,.b_secondaryText,.b_attribution,.b_factrow,.b_focusLabel,.b_footnote,.b_ad .b_adlabel,#b_tween .b_dropdown a,.b_expando .b_subModule,.b_expando .b_suppModule,.b_algo .b_vList td{color:#767676}.b_algo .b_factrow{color:#767676}.b_caption,.snippet{color:#71777d}.b_top .b_caption{color:inherit}.ciot{background-color:#000}#b_context .b_subModule,#b_results .b_subModule,.overlay-container .b_subModule{border-bottom:1px solid #ececec}#b_context .b_sideBleed:last-child .b_subModule,#b_results .b_sideBleed:last-child .b_subModule,.overlay-container .b_sideBleed:last-child .b_subModule{border-bottom:0}.b_subModule h2{color:#111}.c_tlbx,.c_tlbxIS{border-color:#999;background:#fff}.sw_poi{color:#fff}.sw_poia{color:#fff}.sc_errorArea>.sc_error,.sc_errorArea>.sc_error h1,.sc_errorArea>.sc_error h3{color:#71777d}.sc_errorArea font[color=red]{color:#d90026 !important}.b_caption p strong,.b_caption .b_factrow strong,.b_secondaryText strong{color:#767676}.b_belowcaption .b_secondaryText{color:#767676 !important}#b_context .b_ans,#b_context #wpc_ag{background-color:#fff}#b_context .b_posText,.b_expando .b_posText{color:#006d21}#b_context .b_negText,.b_expando .b_negText{color:#c80000}#b_context,#b_context #wpc_eif,#b_context .b_defaultText{color:#71777d}#b_context .b_alert,#b_context .sb_alert,#b_context .b_pAlt{color:#d90026}#b_content .b_lowFocusLink a,#b_context .b_secondaryText,#b_context .b_attribution,#b_context .b_factrow,#b_context .b_footnote,#b_context .b_ad .b_adlabel,.b_expando .b_secondaryText,.b_expando .b_attribution,.b_expando .b_factrow,.b_expando .b_footnote,#b_tween .b_nonselectable{color:#767676}#b_context .b_footnote a,.b_promtext{color:#111}#b_context .b_pointer.b_mhdr:hover .b_secondaryText{color:#36b}z{a:1}.b_footer{background-color:#ececec}.b_footer,.b_footer a,.b_footer a:visited{color:#666}#b_results>.b_ad a{color:#4007a2}#b_results>.b_ad a:visited{color:#4007a2}#b_context>li.b_ad{color:#71777d;background-color:#fff}#b_context>li.b_ad a{color:#4007a2}#b_context>li.b_ad a:visited{color:#4007a2}.b_ad .b_caption p strong,.b_ad .b_caption .b_factrow strong,.b_ad .b_secondaryText strong{color:#767676}cite,#b_results cite.sb_crmb a,#b_results cite a.sb_metalink,#b_results .b_adurl cite a,#bk_wr_container cite a{color:#006d21}.b_ad cite,.b_ad cite a{color:#006d21}#b_context cite,#b_context cite a,.b_expando cite,.b_expando cite a{color:#006d21}.b_button:hover,.b_button:visited,.b_hlButton,.b_hlButton:hover,.b_hlButton:visited,.b_foregroundText,.ciot{color:#fff}.b_button:hover,.b_hlButton{background-color:#0072c5}.b_button:active,.b_hlButton:active{background-color:#333}.b_hlButton:hover{background-color:#106ebe}.b_border,.b_button,.b_hlButton{border-color:#ccc}#b_results>.b_pag{background-color:transparent}#b_results>.b_pag a:hover{background-color:#f4f4f4}#b_results>.b_pag .sb_pagS_bp:hover{background-color:#fff}#b_results>.b_pag a.sb_pagP:hover,#b_results>.b_pag a.sb_pagN:hover{background-color:inherit}#b_results>.b_pag .sb_pagS_bp{color:#111}.b_pag a{border:3px solid transparent}.b_pag a.sb_bp{border:0;border-bottom:3px solid transparent}.b_pag .sb_pagS{border-color:#00809d}.b_pag a.sb_pagS_bp{border-color:#00809d}z{a:1}z{a:1}#b_results>.b_ad{color:#71777d;background-color:#f9fcf7}#b_results,#b_results .b_defaultText,#b_results>.b_pag a:hover,#b_tween .b_selected,#b_tween a.ftrH.b_selected,#b_tween a.ftrH.b_selected:hover,#b_tween .b_toggle:hover,#b_tween .b_highlighted,#hlcchcxmn label{color:#71777d}html,body,h1,h2,h3,h4,h5,h6,p,img,ol,ul,li,form,table,tr,th,td,blockquote{border:0;border-collapse:collapse;border-spacing:0;list-style:none;margin:0;padding:0}html{overflow-y:scroll}#b_content{clear:both;min-height:316px;padding:41px 0 20px 160px}#b_pole{margin:-25px 0 15px -160px;padding-left:180px}#b_tween~#b_pole{margin-top:3px}.b_underSearchbox~#b_pole{margin-top:0}#b_context{margin:0 0 0 60px;padding:0 20px}#b_context .b_ans,.b_expando .b_ans,#b_context .b_ad,.b_card{margin:0 -20px}#b_context .b_ans,.b_expando .b_ans{padding:10px 20px 0}#b_context .b_ad{padding:10px 20px}.b_card{padding:15px 20px}#b_results,#b_context,#b_tween>span,.b_hList>li,.c_tlbxTrg,.b_hPanel>span,.ccal .ccali,.b_footerRight,.b_hPanel .b_xlText,.b_hPanel .cico,.b_moreLink,.b_label+.b_hList,.lc_bks,.lc_bkl,.fiw,.csrc,.b_footnote .cico,.b_algo .b_title H2,.b_algo .b_title>div,.b_algo .b_title .b_suffix>div,h3{display:inline-block}.b_pointer{cursor:pointer}label,.b_ad .b_adlabel,.c_tlbxTrgIcn{display:block}#b_tween{margin-top:-28px;padding-bottom:0}.b_underSearchbox~#b_tween{margin-top:-2px}#b_tween,#b_tween .ftrH{height:30px}#b_tween>span{padding-right:25px}#b_results>li{margin:0 0 2px}#b_results>li,#b_results>.b_ad{padding:10px 20px}#b_results>.b_ans{padding:12px 20px 0}#b_results>.b_algo{padding:12px 20px 0}#b_results>li .b_fullb{margin-left:-20px;margin-right:-20px}#b_results>.b_ad{padding-right:18px;border-right:2px solid #e5e5e5}#b_results>li:first-child{padding-top:10px}#b_results>.b_pag{padding:18px 0 40px 20px}#b_results>.si_pp,.sb_hbop,.b_hide,.ttl,#sw_tfbb,.sw_next,.sw_prev,#id_d,.b_hidden img{display:none}.b_hidden{visibility:hidden}#b_context .b_ans,.b_expando .b_ans{margin-bottom:5px}#b_context .b_ad{margin-bottom:5px}main,aside,.b_inlineList li,.b_inlineList div,.b_factrow li{display:inline}.b_footerRight,td,th,#b_context,.b_hList>li{vertical-align:top}.b_footer{width:100%;padding:12px 0}.c_tlbxTrg{width:15px;height:14px;margin:-1px 6px -3px 2px}.c_tlbxTrgIcn{margin:4px 0 2px 3px}.c_tlbx{position:absolute;z-index:6;border:1px solid;padding:10px}.c_tlbxIS{border-bottom:1px solid}.b_gridList ul:first-child,.b_vlist2col ul:first-child{margin:0 20px 0 0}.b_gridList li,.b_vlist2col li{padding:0 0 10px}.b_vlist2col.b_deep li{padding:0 0 10px}.b_overhangR .b_vlist2col ul:first-child{margin:0 15px 0 0}.b_overhangR .b_vlist2col ul{width:180px}.b_deep p{height:33px}#b_context .b_ad .b_adlabel,#b_content .b_expanderControl .sw_plus,.sc_rf form,form.sc_rf,.b_lBMargin{margin-bottom:10px}.b_ad li,#b_results .b_ad .b_adlabel{margin-bottom:8px}.b_ad li:last-child{margin-bottom:0}.b_ad li li,.b_ad li li:last-child{margin:0}#b_results .b_ad .b_vlist2col,#b_results .b_ad .b_factrow,#b_results .b_ad .b_bcfactrow{margin-top:-6px}#b_results .b_ad .sb_adRA .b_vlist2col{padding-left:0}.sx_ci{border:1px solid #e5e5e5;margin-top:3px;width:80px;height:60px}.b_favicon{margin:0 .5em 0 0}.b_imagePair:after,.b_vlist2col:after,.b_gridList:after{clear:left}.b_imagePair.reverse:after,.b_overhangR:after{clear:right}.b_clear,#b_results>li:after,.b_clearfix:after{clear:both}#b_results>li:after,.b_clearfix:after,.b_imagePair:after,.b_vlist2col:after,.b_gridList:after,.b_overhangR:after{content:'.';display:block;height:0;visibility:hidden}.b_vlist2col ul,.b_gridList ul,.b_float,.b_footer,.b_float_img,.b_pag li,.b_mhdr h2{float:left}.b_floatR_img,.b_floatR,.wr_tc{float:right}.b_overflow,.b_hList li,.b_1linetrunc,.b_deep p,.b_imageOverlayWrapper{overflow:hidden}.b_ansImage{padding:2px 10px 0 0}.b_creditedImg img,.b_creditedImg .cico{padding-bottom:1px}h4,.sa_uc>.b_vList>li>table td,.b_smBottom,#b_context .b_ad h2,.b_attribution,.b_secondaryFocus,.b_focusTextLarge,.b_focusTextMedium,.b_focusTextSmall,.b_focusTextExtraSmall,.b_snippet{padding-bottom:2px}.b_factrow{padding-bottom:2px}h2,.b_focusLabel,label{padding-bottom:3px}.b_vPanel .b_vPanel>div,.b_vList .b_vPanel>div{padding-bottom:5px}.b_dataList li,.b_mBottom{padding-bottom:5px}.b_lBottom,.b_entitySubTitle{padding-bottom:12px}#b_context .b_subModule h2,#b_results .b_subModule h2{padding-bottom:16px}#b_results #sp_recourse.b_lBottom,.b_caption,.b_moreLink,.b_footnote,.b_hList>li,#b_context h2,#b_context h2.b_entityTitle,#b_results .b_ad .b_factrow,#b_results .b_ad .b_bcfactrow,.overlay-container .b_subModule h2,.b_expando h2,.b_no h1,.b_no h4,.b_no li,.b_prominentFocusLabel,.ht_module,.b_locStr{padding-bottom:10px}.b_vPanel>div,.b_vList>li{padding-bottom:10px}#b_results .b_ans>.b_factrow:last-child{padding-bottom:10px}.b_vList .b_hList>li,.b_vPanel .b_hList>li,#b_content .ht_module h2,.b_vList .b_float_img,.b_creditedImg .b_footnote,.b_creditedImg .cico img,#b_results>.b_ad,.b_suppModule .b_mhdr,.b_vList>li>.tab-container,.b_vPanel>div>.tab-container,.b_ad .b_deep h3,#b_content .b_float_img_nbp{padding-bottom:0}.b_caption .b_factrow:last-child,#b_results .b_caption .b_factrow:last-child,.b_caption>.b_dataList:last-child li:last-child,.b_caption .b_moreLink:last-child,.b_vList .b_moreLink:last-child,.b_vList .b_factrow:last-child,.b_hList .b_factrow:last-child,.b_vPanel .b_factrow:last-child,.b_caption .b_attribution:last-child,.b_vList .b_attribution:last-child,.b_hList .b_attribution:last-child,.b_vPanel .b_attribution:last-child,.b_vList>li>table:last-child tr:last-child td,.b_vPanel>div>table:last-child tr:last-child td,.b_vList .b_focusLabel:last-child,.b_vPanel .b_focusLabel:last-child,.b_vList .b_prominentFocusLabel:last-child,.b_vPanel .b_prominentFocusLabel:last-child,.b_vList .b_secondaryFocus:last-child,.b_vPanel .b_secondaryFocus:last-child,.b_vList .b_focusTextExtraSmall:last-child,.b_vPanel .b_focusTextExtraSmall:last-child,.b_vList .b_focusTextSmall:last-child,.b_vPanel .b_focusTextSmall:last-child,.b_vList .b_focusTextMedium:last-child,.b_vPanel .b_focusTextMedium:last-child,.b_vList .b_focusTextLarge:last-child,.b_vPanel .b_focusTextLarge:last-child,.b_vList h4:last-child,.b_vPanel h4:last-child,.b_vPanel .b_caption:last-child,.b_vPanel .b_vList:last-child>li:last-child,.b_vPanel .b_footnote:last-child{padding-bottom:0}.b_vList .b_vPanel,.b_vPanel .b_vPanel{margin-bottom:-5px}.b_hList .b_vList,.b_hList .b_vPanel{margin-bottom:-10px}.ht_module .sc_rf form.lc_bk,.b_mBMargin,.wpcbcc{margin-bottom:5px}#b_results .b_no{margin:0 0 80px}.b_rich{padding-top:3px}h2+.b_rich{padding-top:2px}.b_algo .b_attribution img{vertical-align:text-bottom}.b_smLeft{padding-left:2px}.b_lLeft,.b_floatR_img,.b_suffix,.b_footnote .cico{padding-left:10px}.wr_tc,.b_xlLeft,.b_deep,#b_results .b_ad .b_vlist2col,#b_tween{padding-left:20px}h2 .b_secondaryText{margin

(its longer but char limit on github)

fuegovic commented 1 year ago

Regular Bing also returns the same error

owlcloud commented 1 year ago

Is bing not working now?

stefandeoalf commented 1 year ago

Got the same error here

NeoFoxxo commented 1 year ago

i get the same error

ChillFam commented 1 year ago

Same problem, with or without jailbreak enabled

beiwushijie commented 1 year ago

me too

jkovalchik commented 1 year ago

Same here, using non-jailbreak.

desertofunknown commented 1 year ago

The same issue as well

danny-avila commented 1 year ago

Per the instruction, if the token ever doesn't work, you can provide all your cookies as a string instead. This is confirmed working for me using my project.

  const bingAIClient = new BingAIClient({
    // "_U" cookie from bing.com
    // userToken:
    // process.env.BINGAI_TOKEN == 'user_provided' ? token : process.env.BINGAI_TOKEN ?? null,
    // If the above doesn't work, provide all your cookies as a string instead
    cookies: process.env.BINGAI_COOKIES ?? null,
    debug: false,
    cache: store,
    host: process.env.BINGAI_HOST || null,
    proxy: process.env.PROXY || null
  });

image

Using firefox and dev tools, i get my cookies string from here:

image


You can use any browser, just fish around in the network tab to see which request has a Cookie value in the Request headers

image

timefox commented 1 year ago

Try this: remove 'x-forwarded-for' from fetch options, or set a valid ip for it instead of '1.1.1.1'

BarryAllen-Arrow commented 1 year ago

Try this: remove 'x-forwarded-for' from fetch options, or set a valid ip for it instead of '1.1.1.1'

It worked!!!! Thx man

yxygg commented 1 year ago

Choose a browser that works with the Bing Chat website. Press f12,find “Network”->"chats",copy the request header,replace the entries in src/BingAIClient.js. Maybe it work

owlcloud commented 1 year ago

I did both, but it doesn't work. I am using a host cn.bing.com on linux, I set fetchoptions from the original request in the edge browser with authorization and also set full cookies, still gives the error "failed to parse response body"

owlcloud commented 1 year ago

I went to the Pandora AI project, inserted my cookies, everything works, I insert my cookies at myself, it doesn't work. The module has been updated to the latest version.

ayxj0 commented 1 year ago

When I updated to the latest version and deleted the cookie settings in the settings, I found that I could chat normally.

waylaidwanderer commented 1 year ago

Seems to be working fine as of @waylaidwanderer/chatgpt-api@1.36.3 with jailbreak mode enabled. I'm using cookies still, haven't tested without.

owlcloud commented 1 year ago

abortHandshake( ^ Error: Unexpected server response: 403 at ClientRequest. (/root/Desktop/bot/node_modules/ws/lib/websocket.js:888:7) at ClientRequest.emit (node:events:513:28) at ClientRequest.emit (node:domain:489:12) at HTTPParser.parserOnIncomingClient (node:_http_client:701:27) at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17) at TLSSocket.socketOnData (node:_http_client:542:22) at TLSSocket.emit (node:events:513:28) at TLSSocket.emit (node:domain:489:12) at addChunk (node:internal/streams/readable:324:12) at readableAddChunk (node:internal/streams/readable:297:9) Node.js v18.16.0

a1357031768 commented 1 year ago

Try this: remove 'x-forwarded-for' from fetch options, or set a valid ip for it instead of '1.1.1.1'

that's working and thank you

Mitman93 commented 1 year ago

Very strange. Mine was working just fine all day yesterday and all day today until just now. Getting this error:

Oops! Something went wrong. Please try again in a few moments. Here's the specific error message we encountered: /turing/conversation/create: failed to parse response body. <!DOCTYPE html>Bing<link href="/sa/simg/favicon-...

Nothing has changed on my end so I fear MS has once again altered something on the backend. Can anyone else confirm?

waylaidwanderer commented 1 year ago

Try setting your entire string of cookies instead of just the user token cookie (or removing the cookies config key/value entirely).

Mitman93 commented 1 year ago

Try setting your entire string of cookies instead of just the user token cookie (or removing the cookies config key/value entirely).

Apologies for the delayed response. But yes, that turned out to the be the issue. I thought just the _U value was sufficient. Didn't realize there was another suuuuuuuper long cookie value I needed instead. Thank you so much! And great work on this incredible project. Keep it up!

HailHydra58 commented 1 year ago

abortHandshake( ^ 错误:客户端请求时出现意外的服务器响应:403。(/root/Desktop/bot/node_modules/ws/lib/websocket.js:888:7) at ClientRequest.emit (node:events:513:28) at ClientRequest.emit (node:domain:489:12) at HTTPParser.parserOnIncomingClient (node:_http_client:701:27) at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17) at TLSSocket.socketOnData (node:_http_client:542:22) at TLSSocket.emit (node:events:513:28) at TLSSocket.emit (node:domain:489:12) at addChunk (node:internal/streams/可读性:324:12) at readableAddChunk (node:internal/streams/readable:297:9) 节点.js v18.16.0

Hi buddy, I'm facing the same issue as you. Have you found a solution yet?

a1357031768 commented 1 year ago

just delete 'x-forward-for'in setting.js , and problem solved for me