fix: 对话参数修改

This commit is contained in:
Gsh
2025-07-18 20:33:51 +08:00
parent 3ce9fc9790
commit 90e8dbe449
4 changed files with 6 additions and 8 deletions

View File

@@ -188,14 +188,10 @@ async function startSSE(chatContent: string) {
? `${item.content.substring(0, 2000)}...(内容过长,已省略)`
: item.content,
})),
// sessionId: route.params?.id !== 'not_login' ? String(route.params?.id) : undefined,
// userId: userStore.userInfo?.userId,
// model: modelStore.currentModelInfo.modelId ?? '',
sessionId: route.query?.sessionId !== 'not_login' ? String(route.query?.sessionId) : undefined, // 修改点sessionId 从 query 参数中获取
sessionId: route.params?.id !== 'not_login' ? String(route.params?.id) : undefined,
stream: true,
userId: userStore.userInfo?.userId,
model: modelStore.currentModelInfo.modelId ?? '', // 修改点modelId 改为 model
model: modelStore.currentModelInfo.modelId ?? '',
})) {
handleDataChunk(chunk.result as AnyObject);
}