From 104d85729c5f54191b8914f8d707d42b71fe7b74 Mon Sep 17 00:00:00 2001 From: mic Date: Sun, 12 Jan 2025 21:05:05 +0100 Subject: [PATCH] mzta_specialCommand_AddTags is now a generic mzta_specialCommand --- .../mzta-add-tags.js => mzta-special-commands.js} | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) rename js/{special_commands/mzta-add-tags.js => mzta-special-commands.js} (97%) diff --git a/js/special_commands/mzta-add-tags.js b/js/mzta-special-commands.js similarity index 97% rename from js/special_commands/mzta-add-tags.js rename to js/mzta-special-commands.js index bc701dc5..48c8410d 100644 --- a/js/special_commands/mzta-add-tags.js +++ b/js/mzta-special-commands.js @@ -15,12 +15,13 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ - // Call the API to get the tags + // Call the API to use a special prompt + import { taLogger } from '../mzta-logger.js'; - export class mzta_specialCommand_AddTags { + export class mzta_specialCommand { prompt = ""; worker = null; @@ -32,7 +33,7 @@ constructor(prompt, llm, do_debug = false) { this.prompt = prompt; this.llm = llm; - this.logger = new taLogger('mzta_specialCommand_AddTags', do_debug); + this.logger = new taLogger('mzta_specialCommand', do_debug); this.do_debug = do_debug; switch (this.llm) { case "chatgpt_api":