Skip to content

Commit

Permalink
Update oauth_callback.ts (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackalcooper committed Oct 3, 2024
1 parent dcebcc1 commit 14d8f60
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions app/api/oauth_callback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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 ||
Expand Down

0 comments on commit 14d8f60

Please sign in to comment.