From 4b66ba8821a2c6df6e56d1a07fd78bd6f0bad349 Mon Sep 17 00:00:00 2001 From: DirkSchlossmacher <62424946+DirkSchlossmacher@users.noreply.github.com> Date: Thu, 23 Nov 2023 13:45:12 +0100 Subject: [PATCH] userEmail --- app/client/platforms/openai.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/client/platforms/openai.ts b/app/client/platforms/openai.ts index 50d3cce18..19d5e5ebe 100644 --- a/app/client/platforms/openai.ts +++ b/app/client/platforms/openai.ts @@ -115,7 +115,7 @@ export class ChatGPTApi implements LLMApi { const userEmail = session.user.email; const modelIdentifier = modelConfig.model; const dateKey = new Date().toISOString().slice(0, 7); // "YYYY-MM" - console.log("API Call: ",token.email, modelIdentifier); + console.log("API Call: ", userEmail, modelIdentifier); // Use the userEmail to increment the API call count await incrementAPICallCount(userEmail, modelIdentifier, dateKey);