在 Emacs 中使用必应 Chat

我这里已经是最新版本了,然而好像没有完全好 :thinking:

使用时仍然有一定概率会出现这个错误

和上面报一样的错误吗

是的zsbd

可以执行一下下面这句代码,看一下报不报错,上面那个错误就是因为这行代码

(websocket-create-headers "wss://sydney.bing.com/sydney/ChatHub" "HmPeCcPJY22k6syRwY6bPw==" nil nil aichat-bingai--chathub-headers)

它并没有报错 :thinking:

现在问题复现的概率变得很小了,我怀疑是我的网络问题

那应该不是一个问题,报错的时候还是可以向上面那样贴一下错误信息,我可以分析一下。

1 个赞

刚说碰不到呢,这一下子又来了 :upside_down_face:

*AICHAT-DEBUG*

cur command: (curl --silent --show-error --include --config -), config: 
url = "https://edgeservices.bing.com/edgesvc/turing/conversation/create"
request = "GET"
user-agent = "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Mobile Safari/537.36 Edg/111.0.1661.41"
header = "Cookie: _clck=hodh4e|1|fa6|0; _clsk=1k6uyry|1679664527588|1|1|y.clarity.ms/collect; ABDEF=V=13&ABDV=11&MRNB=1679139972356&MRB=0; ANIMIA=FRE=1; ANON=A=F5E2D31CC833261F284D5C7CFFFFFFFF; MUID=29CB530C360E6A780C1C41CE37206B01; SRCHD=AF=ANNTA1; SRCHHPGUSR=SRCHLANG=zh-Hans&PV=6.2.6&BRW=XW&BRH=M&CW=1703&CH=896&SCW=1689&SCH=3133&DPR=1.1&UTC=480&DM=1&EXLTT=31&HV=1679664508&WTS=63812816097&PRVCW=1703&PRVCH=896&THEME=1&BZA=0&cdxtone=Balanced; SRCHUID=V=2&GUID=86595A615DB943F38ED095090B5CFD50&dmnchg=1; SRCHUSR=DOB=20230224&T=1679664480000&POEX=W; SUID=A; SnrOvr=X=rebateson; USRLOC=HS=1&ELOC=LAT=33.43606185913086|LON=-112.02378845214844|N=%E5%87%A4%E5%87%B0%E5%9F%8E%EF%BC%8C%E4%BA%9A%E5%88%A9%E6%A1%91%E9%82%A3%E5%B7%9E|ELT=1|; ZHCHATSTRONGATTRACT=TRUE; _HPVN=CS=eyJQbiI6eyJDbiI6OSwiU3QiOjAsIlFzIjowLCJQcm9kIjoiUCJ9LCJTYyI6eyJDbiI6OSwiU3QiOjAsIlFzIjowLCJQcm9kIjoiSCJ9LCJReiI6eyJDbiI6OSwiU3QiOjAsIlFzIjowLCJQcm9kIjoiVCJ9LCJBcCI6dHJ1ZSwiTXV0ZSI6dHJ1ZSwiTGFkIjoiMjAyMy0wMy0yNFQwMDowMDowMFoiLCJJb3RkIjowLCJHd2IiOjAsIkRmdCI6bnVsbCwiTXZzIjowLCJGbHQiOjAsIkltcCI6MTEyfQ==; _RwBf=ilt=7&ihpd=2&ispd=5&rc=111&rb=111&gb=0&rg=0&pc=111&mtu=0&rbb=0.0&g=0&cid=&clo=0&v=5&l=2023-03-24T07:00:00.0000000Z&lft=0001-01-01T00:00:00.0000000&aof=0&o=0&p=bingcopilotwaitlist&c=MY00IA&t=438&s=2023-02-18T05:43:55.2607377+00:00&ts=2023-03-24T13:28:21.8342726+00:00&rwred=0&wls=2&lka=0&lkt=0&TH=&r=1&mta=0&e=43VU43qKGZfyJjb-lDbY9RFtSocvq0SpoUKTfgoyXfQEC_86uLN7khcJB4F_qWBx214wYDMZfc3wMwAgJLZZ_w&A=; _U=1ggixVenoav0941zIXASqXUc_i_K2Tclcw3l8_-0sG7f5DJCmt3sMkL_u2BKKBe127IG-9r3vy79jVoxFzW73VfrQYxIN2KIRjMYryiveq-sN3K1HI1qR_SER3svhuGeFKOxLHJgcNOo-a8KNjyj0RHIMBnD7uuVokrtvnUdu0-7lZOsSrO8HHJX4QlwNY8F1Z95NvDibqbEyh6olDWNG22K2YSbYe7TYbAPapuVjE4w; _UR=QS=0&TQS=0"
header = "authority: edgeservices.bing.com"
header = "accept: application/json"
header = "accept-language: zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6"
header = "content-type: application/json"
header = "referer: https://edgeservices.bing.com/edgesvc/chat"
header = "sec-ch-ua: \"Microsoft Edge\"=\"111\", \"Not(A:Brand\";v=\"8\", \"Chromium\";v=\"111\""
header = "sec-ch-ua-mobile: ?0"
header = "sec-ch-ua-platform: \"Windows\""
header = "sec-fetch-dest: empty"
header = "sec-fetch-mode: cors"
header = "sec-fetch-site: same-origin"
header = "x-ms-client-request-id: 6b541251-d034-451d-adb2-e944863e44dc"
header = "x-ms-useragent: azsdk-js-api-client-factory/1.0.0-beta.1 core-rest-pipeline/1.10.0 OS/Win32"

curl filter data: 
HTTP/2 200 
e[1mx-cachee[0m: CONFIG_NOCACHE
e[1maccept-che[0m: Sec-CH-UA-Arch, Sec-CH-UA-Bitness, Sec-CH-UA-Full-Version, Sec-CH-UA-Mobile, Sec-CH-UA-Model, Sec-CH-UA-Platform, Sec-CH-UA-Platform-Version
e[1mx-msedge-refe[0m: Ref A: 60A8EF226C6A47A3BA25B44C1B8D3ABE Ref B: LAX311000110005 Ref C: 2023-03-24T13:41:14Z
e[1mdatee[0m: Fri, 24 Mar 2023 13:41:14 GMT
e[1mcontent-lengthe[0m: 0


curl process sentinel: finished

status:
(200)
headers:
(() (e[1mcontent-lengthe[0m . 0) (e[1mdatee[0m . Fri, 24 Mar 2023 13:41:14 GMT) (e[1mx-msedge-refe[0m . Ref A) (e[1maccept-che[0m . Sec-CH-UA-Arch, Sec-CH-UA-Bitness, Sec-CH-UA-Full-Version, Sec-CH-UA-Mobile, Sec-CH-UA-Model, Sec-CH-UA-Platform, Sec-CH-UA-Platform-Version) (e[1mx-cachee[0m . CONFIG_NOCACHE))
body:

没有名为 *websocket wss://sydney.bing.com/sydney/ChatHub debug* 的buffer

Bing 禁了国内的 IP, 要设置代理才没有这个问题

1 个赞

原来如此,是我疏忽了,浪费了大佬的时间 :cry:

感谢大佬的耐心指导与回复 :kissing_heart:

不用客气,之前不开代理也能用,也是昨天才 ban ip 的

1 个赞

我还没用就和谐了。我们墙了 bing,微软封了代理 IP,双向夹击。

改 Header 又可以了。 不知能用多久。

现在不能用了?报错: error CaptchaChallenge:User needs to solve CAPTCHA to continue