mirror of
https://github.com/SilenceLurker/ST-Amily2-Chat-Optimisation.git
synced 2026-06-06 11:15: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) {
|
if (currentContext.chat && currentContext.chat.length > 0) {
|
||||||
const lastMessage = currentContext.chat[currentContext.chat.length - 1];
|
const lastMessage = currentContext.chat[currentContext.chat.length - 1];
|
||||||
if (saveStateToMessage(getMemoryState(), lastMessage)) {
|
if (saveStateToMessage(getMemoryState(), lastMessage)) {
|
||||||
saveChat();
|
|
||||||
renderTables();
|
renderTables();
|
||||||
updateOrInsertTableInChat();
|
updateOrInsertTableInChat();
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
saveChatDebounced();
|
saveChat();
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`[Amily2-副API] 发生严重错误:`, error);
|
console.error(`[Amily2-副API] 发生严重错误:`, error);
|
||||||
|
|||||||
Reference in New Issue
Block a user