From b381b0cd3bff74c35a37e2a14db4b807cc8cee2f Mon Sep 17 00:00:00 2001 From: Phodal Huang Date: Fri, 24 Nov 2023 09:12:09 +0800 Subject: [PATCH] ci: fix ci error issue --- src/app/api/completion/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/api/completion/route.ts b/src/app/api/completion/route.ts index 6026a1b..496bd3f 100644 --- a/src/app/api/completion/route.ts +++ b/src/app/api/completion/route.ts @@ -3,7 +3,7 @@ import { OpenAIStream, StreamingTextResponse } from 'ai'; // Create an OpenAI API client (that's edge friendly!) const openai = new OpenAI({ - apiKey: process.env.OPENAI_API_KEY, + apiKey: process.env.OPENAI_API_KEY || '', }); // Set the runtime to edge for best performance