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