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,