From befb6d77e201e8eb9091b53a50fcabcd28577062 Mon Sep 17 00:00:00 2001 From: bensigo Date: Wed, 11 Oct 2023 20:20:48 +0400 Subject: [PATCH] fix: adding maxDuration for chat api --- src/pages/api/v2/chat.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/api/v2/chat.ts b/src/pages/api/v2/chat.ts index 31158e0..0548a2b 100644 --- a/src/pages/api/v2/chat.ts +++ b/src/pages/api/v2/chat.ts @@ -6,7 +6,7 @@ import { env } from "@/env.mjs"; import { authOptions, getServerAuthSession } from "@/server/auth"; import { type IncomingMessage } from "http"; - +export const maxDuration = 100; const config = new Configuration({ apiKey: env.OPEN_AI,