fix: 对话参数修改

This commit is contained in:
Gsh
2025-07-18 19:49:11 +08:00
parent 10f7499066
commit 3ce9fc9790
3 changed files with 9 additions and 4 deletions

View File

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