mirror of
https://github.com/SilenceLurker/ST-Amily2-Chat-Optimisation.git
synced 2026-06-06 10:05:50 +00:00
Update secondary-filler.js
This commit is contained in:
@@ -234,13 +234,11 @@ export async function fillWithSecondaryApi(latestMessage, forceRun = false) {
|
||||
if (currentContext.chat && currentContext.chat.length > 0) {
|
||||
const lastMessage = currentContext.chat[currentContext.chat.length - 1];
|
||||
if (saveStateToMessage(getMemoryState(), lastMessage)) {
|
||||
saveChat();
|
||||
renderTables();
|
||||
updateOrInsertTableInChat();
|
||||
return;
|
||||
}
|
||||
}
|
||||
saveChatDebounced();
|
||||
saveChat();
|
||||
|
||||
} catch (error) {
|
||||
console.error(`[Amily2-副API] 发生严重错误:`, error);
|
||||
|
||||
Reference in New Issue
Block a user