From 4d14ff72c23f6422506f8cdd2ff9dcaf707bb1e7 Mon Sep 17 00:00:00 2001 From: songjvcheng Date: Tue, 12 Aug 2025 11:13:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=86=E5=8F=B2=E5=AF=B9=E8=AF=9D100?= =?UTF-8?q?=E6=9D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/chat_with_audio.js | 2 +- src/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chat_with_audio.js b/src/chat_with_audio.js index 2933922..855234c 100644 --- a/src/chat_with_audio.js +++ b/src/chat_with_audio.js @@ -104,7 +104,7 @@ async function saveMessage(userInput, assistantResponse) { async function chatWithAudioStream(userInput) { // 确保历史消息已初始化 if (!isInitialized) { - await initializeHistoryMessage(); + await initializeHistoryMessage(100); } // 验证配置 diff --git a/src/index.js b/src/index.js index 4a43ae6..0726fde 100644 --- a/src/index.js +++ b/src/index.js @@ -226,7 +226,7 @@ class WebRTCChat { async initializeHistory() { try { - await initializeHistoryMessage(); + await initializeHistoryMessage(100); console.log('历史消息初始化完成'); } catch (error) { console.error('历史消息初始化失败:', error);