From ef56912e44533fd13922819b7f283e7db95b5969 Mon Sep 17 00:00:00 2001 From: Ctrlz <143257420+ctrlz526@users.noreply.github.com> Date: Wed, 13 Aug 2025 16:33:03 +0800 Subject: [PATCH] fix: update runningUserInfo retrieval in chat completions API (#5446) --- projects/app/src/pages/api/v1/chat/completions.ts | 2 +- projects/app/src/pages/api/v2/chat/completions.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/app/src/pages/api/v1/chat/completions.ts b/projects/app/src/pages/api/v1/chat/completions.ts index 1e9183fd2..8e8415c30 100644 --- a/projects/app/src/pages/api/v1/chat/completions.ts +++ b/projects/app/src/pages/api/v1/chat/completions.ts @@ -287,7 +287,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) { teamId: String(app.teamId), tmbId: String(app.tmbId) }, - runningUserInfo: await getRunningUserInfoByTmbId(app.tmbId), + runningUserInfo: await getRunningUserInfoByTmbId(tmbId), uid: String(outLinkUserId || tmbId), chatId, diff --git a/projects/app/src/pages/api/v2/chat/completions.ts b/projects/app/src/pages/api/v2/chat/completions.ts index 7e3bde200..d5da272ec 100644 --- a/projects/app/src/pages/api/v2/chat/completions.ts +++ b/projects/app/src/pages/api/v2/chat/completions.ts @@ -286,7 +286,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) { teamId: String(app.teamId), tmbId: String(app.tmbId) }, - runningUserInfo: await getRunningUserInfoByTmbId(app.tmbId), + runningUserInfo: await getRunningUserInfoByTmbId(tmbId), uid: String(outLinkUserId || tmbId), chatId,