getServerSession

This commit is contained in:
DirkSchlossmacher 2023-11-23 13:25:57 +01:00
parent 51e5785ce4
commit ea0e0f8cec

View File

@ -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<{