getMyServerSession

This commit is contained in:
DirkSchlossmacher 2023-11-23 14:37:56 +01:00
parent ee042d9dbe
commit 9f68da3afc

View File

@ -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