mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-08 19:16:37 +08:00
rollback
This commit is contained in:
parent
9f68da3afc
commit
d0a8be1f26
@ -29,10 +29,11 @@ import { incrementAPICallCount } from '../../utils/cloud/redisRestClient';
|
||||
// app\client\platforms\openai.ts
|
||||
// app\auth.ts
|
||||
|
||||
/*
|
||||
export async function getMyServerSession() {
|
||||
return await getServerAuthSession();
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
|
||||
export interface OpenAIListModelResponse {
|
||||
@ -116,7 +117,7 @@ export class ChatGPTApi implements LLMApi {
|
||||
const modelIdentifier = modelConfig.model;
|
||||
console.log("API Call: session or email is not available - model: ", modelIdentifier);
|
||||
|
||||
const session = await getMyServerSession();
|
||||
// const session = await getMyServerSession();
|
||||
|
||||
if (session?.user?.email) {
|
||||
// Now you have the user's email from the session
|
||||
|
Loading…
Reference in New Issue
Block a user