Update index.js
Browse files39 unmodified lines404142434344454639 unmodified lines}async function bingChat(query) { const api = new BingChat({ cookie: process.env.BING_IMAGE_COOKIE cookie: process.env.BING_IMAGE_COOKIE || "1hPKd66tX-wvyQtYG5F-UIzIYgcsNB1rgZ5jAGGDCu30pMnoh-X8tHkZ92BNUmQ_MlPKKMrERVXwPqf4XhUZRTjrfOrrAxH4CCqoJfdfDptUXPJXJOQ7duuJEy-2C4uSabwUjuvkRIlifbB-3WEa4Y4dTpcNm9dVnkT14Lawhf4ceGJax0IXF5gbgnlhtLZdUJ08WyGQSnllQVNc-IzsVbQ" })const res = await api.sendMessage(text, { variant: 'Precise' })return res?.textindex.js+1-1