Open ShreshthTiwari opened 1 year ago
await import("bing-chat")
import('bing-chat').then(_=>{
BingChat=_.BingChat;
async function main() {
// Initialize the API with your valid cookie
const api = new BingChat({ cookie: process.env.BING_COOKIE });
// Send a message to Bing Chat
const response = await api.sendMessage('Hello, how can I help?');
console.log('Bing Chat response:', response.text);
}
main();
});
Yes, Please.