diff --git a/src/components/AIChat/ChatExplorer.vue b/src/components/AIChat/ChatExplorer.vue index 45c2f89e..b698c80a 100644 --- a/src/components/AIChat/ChatExplorer.vue +++ b/src/components/AIChat/ChatExplorer.vue @@ -23,6 +23,7 @@ import { useSettingsStore } from '@/stores/settings' import { useAssistantStore } from '@/stores/assistant' import { useSkillStore } from '@/stores/skill' import { useChatScroll } from './composables/useChatScroll' +import { useProgressiveChatHistory } from './composables/useProgressiveChatHistory' import { useChatModals } from './composables/useChatModals' import { groupMessagesToQAPairs } from './utils/chatMessages' import type { MentionedMemberContext } from '@/composables/useAIChat' @@ -181,6 +182,8 @@ const assistantBackupName = computed(() => { // QA 对 const qaPairs = computed(() => groupMessagesToQAPairs(messages.value)) +const progressiveHistory = useProgressiveChatHistory(qaPairs, currentAIChatId, chatScroll.messagesContainer) +const { visiblePairs, hasOlderPairs, loadOlderPairs } = progressiveHistory // 检查 LLM 配置 async function checkLLMConfig() { @@ -515,8 +518,19 @@ watch( +
+ +
+ -