历史对话100条
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3m57s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3m57s
This commit is contained in:
parent
7075e58331
commit
4d14ff72c2
@ -104,7 +104,7 @@ async function saveMessage(userInput, assistantResponse) {
|
||||
async function chatWithAudioStream(userInput) {
|
||||
// 确保历史消息已初始化
|
||||
if (!isInitialized) {
|
||||
await initializeHistoryMessage();
|
||||
await initializeHistoryMessage(100);
|
||||
}
|
||||
|
||||
// 验证配置
|
||||
|
||||
@ -226,7 +226,7 @@ class WebRTCChat {
|
||||
|
||||
async initializeHistory() {
|
||||
try {
|
||||
await initializeHistoryMessage();
|
||||
await initializeHistoryMessage(100);
|
||||
console.log('历史消息初始化完成');
|
||||
} catch (error) {
|
||||
console.error('历史消息初始化失败:', error);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user