-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Error: 200: Failed to initialize chat. OK
at initChat (file:///C:/Users/kurch/Desktop/openhab-marussia/node_modules/@mumulhl/duckduckgo-ai-chat/index.js:127:11)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async main (file:///C:/Users/kurch/Desktop/openhab-marussia/src/index.js:35:16)
[nodemon] clean exit - waiting for changes before restart
status.headers.get return null
/** Init chat.
*
* @param model The model used by chat.
* @returns A Chat instance.
*/ async function initChat(model) {
const status = await fetch(STATUS_URL, {
headers: STATUS_HEADERS
});
const vqd = status.headers.get("x-vqd-4"); // <---- status.headers.get return null
if (!vqd) {
throw new Error(`${status.status}: Failed to initialize chat. ${status.statusText}`);
}
return new Chat(vqd, _model[model]);
}Metadata
Metadata
Assignees
Labels
No labels