From ea0e0f8cec308664c3bbf44fe61a158f1f1dece6 Mon Sep 17 00:00:00 2001 From: DirkSchlossmacher <62424946+DirkSchlossmacher@users.noreply.github.com> Date: Thu, 23 Nov 2023 13:25:57 +0100 Subject: [PATCH] getServerSession --- app/client/platforms/openai.ts | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/app/client/platforms/openai.ts b/app/client/platforms/openai.ts index 75d361a7e..d059aa056 100644 --- a/app/client/platforms/openai.ts +++ b/app/client/platforms/openai.ts @@ -28,27 +28,6 @@ import { incrementAPICallCount } from '../../utils/cloud/redisRestClient'; - - -export default async function handler(req, res) { - const session = await getServerSession(req, res, authOptions) - - if (!session) { - res.status(401).json({ message: "You must be logged in." }); - return; - } - - console.log("session within openai.ts:", session); - - return res.json({ - message: 'Success', - }) -} - - - - - export interface OpenAIListModelResponse { object: string; data: Array<{