From c9c4060b817eb53e9aef218aa29a4310b643c0ec Mon Sep 17 00:00:00 2001 From: Shenghang Tsai Date: Wed, 25 Sep 2024 13:34:34 +0800 Subject: [PATCH] Update chat.tsx (#5) --- app/components/chat.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/components/chat.tsx b/app/components/chat.tsx index c829b8af7389..20422b49454d 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -1333,7 +1333,8 @@ function _Chat() { access.useCustomConfig = true; access.openaiApiKey = sfakValue; access.openaiUrl = - process.env.NEXT_PUBLIC_SF_NEXT_CHAT_SF_API_ENDPOINT!; + process.env.NEXT_PUBLIC_SF_NEXT_CHAT_SF_API_ENDPOINT || + "https://api.siliconflow.cn"; }); removeCookie("sfak"); }