transitive-bullshit / bing-chat

Node.js client for Bing's new AI-powered search. It's like ChatGPT on steroids 🔥
MIT License
1.22k stars 128 forks source link

unexpected HTTP error createConversation 403 #40

Open xhzth7091 opened 1 year ago

xhzth7091 commented 1 year ago

npx tsx d:\code\python\binggpt\bing-chat-main\demos\demo.ts windows 11

✖ What are today’s top stories in the United States? Error: unexpected HTTP error createConversation 403: Forbidden at (d:\code\python\binggpt\bing-chat-main\src\bing-chat.ts:317:15) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at BingChat.sendMessage (d:\code\python\binggpt\bing-chat-main\src\bing-chat.ts:65:28) at async oraPromise (file:///d:/code/python/binggpt/bing-chat-main/node_modules/ora/index.js:397:18) at main (d:\code\python\binggpt\bing-chat-main\demos\demo.ts:20:15)

I can log in https://www.bing.com,Can chat normally image

cookie RDBBN1J1 @~%N2($M}0 E9J

1F)~% XG$XM5GZ7F`_%L HP

Why would you report 403?

RaschidJFR commented 1 year ago

Have you tried not using the cookie at all? I started getting 503 until I removed it.

bestK commented 1 year ago
yarn add bing-chat-patch

#Create your bing proxy, see https://github.com/adams549659584/go-proxy-bingai

export BING_HOST=<your_bing_host> #Please do not include https/http.

usage

import { BingChat } from 'bing-chat-patch';
import dotenv from 'dotenv';
dotenv.config();