添加意见反馈
This commit is contained in:
1 parent
2bd27ed70d
commit
6b2ab65436
16 files changed
+853
-37
No files matched your search
@@ -23,6 +23,7 @@ interface ChatMessage {
|
||||
content: string;
|
||||
retriever_resources?: RetrieverResource[];
|
||||
attribution_parts?: string[];
|
||||
chat_log_id?: number;
|
||||
}
|
||||
|
||||
// 统一资源格式为数组,兼容 list 或 { data: list } 两种结构
|
||||
@@ -263,6 +264,12 @@ export function useChat() {
|
||||
}
|
||||
}
|
||||
} else if (data.event === 'message_end') {
|
||||
if (botMsgIndex !== null && Number.isInteger(data.chat_log_id)) {
|
||||
const currentBotMsg = messages.value[botMsgIndex];
|
||||
if (currentBotMsg) {
|
||||
currentBotMsg.chat_log_id = Number(data.chat_log_id);
|
||||
}
|
||||
}
|
||||
if (data.conversation_id) {
|
||||
conversationId.value = data.conversation_id;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user