mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-09 03:26:38 +08:00
getMyServerSession
This commit is contained in:
parent
ee042d9dbe
commit
9f68da3afc
@ -116,7 +116,7 @@ export class ChatGPTApi implements LLMApi {
|
|||||||
const modelIdentifier = modelConfig.model;
|
const modelIdentifier = modelConfig.model;
|
||||||
console.log("API Call: session or email is not available - model: ", modelIdentifier);
|
console.log("API Call: session or email is not available - model: ", modelIdentifier);
|
||||||
|
|
||||||
const session = await getMyServerSession(req);
|
const session = await getMyServerSession();
|
||||||
|
|
||||||
if (session?.user?.email) {
|
if (session?.user?.email) {
|
||||||
// Now you have the user's email from the session
|
// Now you have the user's email from the session
|
||||||
|
Loading…
Reference in New Issue
Block a user