From 14d8f6040f332a27f9def92231c8ca2ac462bd1c Mon Sep 17 00:00:00 2001 From: Shenghang Tsai Date: Wed, 25 Sep 2024 13:10:26 +0800 Subject: [PATCH] Update oauth_callback.ts (#2) --- app/api/oauth_callback.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/api/oauth_callback.ts b/app/api/oauth_callback.ts index fb07dbf8e554..c4f994af7352 100644 --- a/app/api/oauth_callback.ts +++ b/app/api/oauth_callback.ts @@ -21,8 +21,6 @@ export async function handle( `${ process.env.NEXT_PUBLIC_SF_NEXT_CHAT_SF_ACCOUNT_ENDPOINT || "https://account.siliconflow.cn" - }/oauth?client_id=${ - process.env.NEXT_PUBLIC_SF_NEXT_CHAT_CLIENT_ID }/api/open/oauth`, { method: "POST", @@ -41,8 +39,6 @@ export async function handle( const tokenJson = await tokenFetch.json(); const access_token = tokenJson.status ? tokenJson.data?.access_token : null; console.log("access_token", access_token); - // uat https://cloud-uat.siliconflow.cn - // prod https://cloud.siliconflow.cn const apiKey = await fetch( `${ process.env.NEXT_PUBLIC_SF_NEXT_CHAT_SF_CLOUD_ENDPOINT ||