From e925b0ff4ac27ba33d075b1d987de335591bf579 Mon Sep 17 00:00:00 2001 From: PH <57695072+PHSix@users.noreply.github.com> Date: Tue, 28 Mar 2023 22:37:30 +0800 Subject: [PATCH] feat: support openai api proxy to denohub --- app/api/chat/route.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/api/chat/route.ts b/app/api/chat/route.ts index 18c7db148..d7a4f4523 100644 --- a/app/api/chat/route.ts +++ b/app/api/chat/route.ts @@ -13,6 +13,7 @@ export async function POST(req: Request) { const openai = new OpenAIApi( new Configuration({ apiKey, + basePath: "https://closeai.deno.dev/v1", }) );