From d0a8be1f26f067064c24b95cb5a6901629c542c1 Mon Sep 17 00:00:00 2001 From: DirkSchlossmacher <62424946+DirkSchlossmacher@users.noreply.github.com> Date: Thu, 23 Nov 2023 14:54:45 +0100 Subject: [PATCH] rollback --- app/client/platforms/openai.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/client/platforms/openai.ts b/app/client/platforms/openai.ts index 8bae5ce40..4e60ae06c 100644 --- a/app/client/platforms/openai.ts +++ b/app/client/platforms/openai.ts @@ -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