fix: 对话参数修改
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user