mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-11 20:43:42 +08:00
userEmail
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user