From d306b26486bfd31753226e078b968fae582f2518 Mon Sep 17 00:00:00 2001 From: LiangGuoqian <996231888@qq.com> Date: Thu, 18 May 2023 10:24:44 +0800 Subject: [PATCH] Update common.ts --- app/api/utils/common.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/utils/common.ts b/app/api/utils/common.ts index a71ede4..a26c885 100644 --- a/app/api/utils/common.ts +++ b/app/api/utils/common.ts @@ -18,4 +18,4 @@ export const setSession = (sessionId: string) => { return { 'Set-Cookie': `session_id=${sessionId}` } } -export const client = new ChatClient(API_KEY, API_URL) +export const client = new ChatClient(API_KEY, API_URL ? API_URL : undefined)