历史对话100条
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3m57s

This commit is contained in:
宋居成 2025-08-12 11:13:52 +08:00
parent 7075e58331
commit 4d14ff72c2
2 changed files with 2 additions and 2 deletions

View File

@ -104,7 +104,7 @@ async function saveMessage(userInput, assistantResponse) {
async function chatWithAudioStream(userInput) {
// 确保历史消息已初始化
if (!isInitialized) {
await initializeHistoryMessage();
await initializeHistoryMessage(100);
}
// 验证配置

View File

@ -226,7 +226,7 @@ class WebRTCChat {
async initializeHistory() {
try {
await initializeHistoryMessage();
await initializeHistoryMessage(100);
console.log('历史消息初始化完成');
} catch (error) {
console.error('历史消息初始化失败:', error);