disable incognito mode

This commit is contained in:
Archeb
2024-06-22 09:26:10 +08:00
parent b820b8ac56
commit b999fff510
2 changed files with 1 additions and 11 deletions
+1 -1
View File
@@ -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);
-10
View File
@@ -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",
}
];
}