From 763dc9d3ab8d6676e908582d9d2361fc0c1f3eee Mon Sep 17 00:00:00 2001 From: Zixin Zhou Date: Sat, 23 Aug 2025 23:48:47 +0800 Subject: [PATCH] update the user_id type --- components/SmartChatBox/api.ts | 2 +- components/SmartChatBox/types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/SmartChatBox/api.ts b/components/SmartChatBox/api.ts index 989d5a1..fd08fe4 100644 --- a/components/SmartChatBox/api.ts +++ b/components/SmartChatBox/api.ts @@ -505,7 +505,7 @@ export async function sendMessage( session_id: `project_${config.projectId}_user_${config.userId}`, user_input: textBlocks.map(b => (b as { text: string }).text).join("\n"), project_id: config.projectId, - user_id: config.userId, + user_id: config.userId.toString(), }; // 如果有图片,添加第一张图片的URL diff --git a/components/SmartChatBox/types.ts b/components/SmartChatBox/types.ts index 31c2dfa..70132c3 100644 --- a/components/SmartChatBox/types.ts +++ b/components/SmartChatBox/types.ts @@ -55,7 +55,7 @@ export interface SendMessageRequest { user_input: string; image_url?: string; project_id: string; - user_id: number; + user_id: string; } export interface ApiResponse {