From b999fff510baeb8046cf93467a9ac700f56d3f2d Mon Sep 17 00:00:00 2001 From: Archeb Date: Sat, 22 Jun 2024 09:26:10 +0800 Subject: [PATCH] disable incognito mode --- index.mjs | 2 +- utils.mjs | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/index.mjs b/index.mjs index 0c0b26b..52f9ee9 100644 --- a/index.mjs +++ b/index.mjs @@ -228,7 +228,7 @@ app.post("/v1/messages", apiKeyAuth, (req, res) => { req_param.append("page", "1"); req_param.append("count", "10"); req_param.append("safeSearch", "Off"); - req_param.append("q", "Please follow the instruction."); + req_param.append("q", " "); req_param.append("chatId", traceId); req_param.append("traceId", `${traceId}|${msgid}|${new Date().toISOString()}`); req_param.append("conversationTurnId", msgid); diff --git a/utils.mjs b/utils.mjs index fe1c1b1..c447325 100644 --- a/utils.mjs +++ b/utils.mjs @@ -54,16 +54,6 @@ function getSessionCookie(jwtSession, jwtToken) { httpOnly: true, secure: true, sameSite: "Lax", - }, - { - name: "incognito", - value: "true", - domain: "you.com", - path: "/", - expires: 1800000000, - httpOnly: true, - secure: true, - sameSite: "Lax", } ]; }