From 7c72c1d9f3d9ab255b8d6cebd55d88739640f67f Mon Sep 17 00:00:00 2001 From: AyeeMinerva Date: Fri, 28 Feb 2025 12:31:25 +0800 Subject: [PATCH 1/2] add printMessages in st-content so that we can use this func in extension --- public/scripts/st-context.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/scripts/st-context.js b/public/scripts/st-context.js index ad7021622..7846aad95 100644 --- a/public/scripts/st-context.js +++ b/public/scripts/st-context.js @@ -45,6 +45,7 @@ import { this_chid, updateChatMetadata, updateMessageBlock, + printMessages, } from '../script.js'; import { extension_settings, @@ -203,6 +204,7 @@ export function getContext() { extractMessageFromData, getPresetManager, getChatCompletionModel, + printMessages, }; } From 73035c1d1c1e22b3f0c836ff9e95665f91272f7d Mon Sep 17 00:00:00 2001 From: AyeeMinerva Date: Fri, 28 Feb 2025 15:08:55 +0800 Subject: [PATCH 2/2] add clearChat in st-context --- public/scripts/st-context.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/scripts/st-context.js b/public/scripts/st-context.js index 7846aad95..12a523f8c 100644 --- a/public/scripts/st-context.js +++ b/public/scripts/st-context.js @@ -46,6 +46,7 @@ import { updateChatMetadata, updateMessageBlock, printMessages, + clearChat, } from '../script.js'; import { extension_settings, @@ -205,6 +206,7 @@ export function getContext() { getPresetManager, getChatCompletionModel, printMessages, + clearChat, }; }