加载100条历史对话
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2m53s

This commit is contained in:
Song367 2025-08-12 11:10:35 +08:00
parent 1731519143
commit 9a1bd0acfd
2 changed files with 3 additions and 2 deletions

View File

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

View File

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