From 021455bdd4988b8b84259cdb7557c870a502b45f Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Sun, 17 Aug 2025 14:40:01 +0200 Subject: [PATCH] Add example chat template to the example plugin configuration --- .../Plugins/configuration/plugin.lua | 26 ++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/app/MindWork AI Studio/Plugins/configuration/plugin.lua b/app/MindWork AI Studio/Plugins/configuration/plugin.lua index b81e8686..e7d5005b 100644 --- a/app/MindWork AI Studio/Plugins/configuration/plugin.lua +++ b/app/MindWork AI Studio/Plugins/configuration/plugin.lua @@ -68,4 +68,28 @@ CONFIG["SETTINGS"] = {} -- Configure the user permission to add providers: -- Allowed values are: true, false --- CONFIG["SETTINGS"]["DataApp.AllowUserToAddProvider"] = false \ No newline at end of file +-- CONFIG["SETTINGS"]["DataApp.AllowUserToAddProvider"] = false + +-- Example chat templates for this configuration: +CONFIG["CHAT_TEMPLATES"] = {} + +-- A simple example chat template: +CONFIG["CHAT_TEMPLATES"][#CONFIG["CHAT_TEMPLATES"]+1] = { + ["Id"] = "00000000-0000-0000-0000-000000000000", + ["Name"] = "", + ["SystemPrompt"] = "You are 's helpful AI assistant for .", + ["PredefinedUserPrompt"] = "Please help me with ...", + ["AllowProfileUsage"] = true, + ["ExampleConversation"] = { + { + -- Allowed values are: USER, AI, SYSTEM + ["Role"] = "USER", + ["Content"] = "Hello! Can you help me with a quick task?" + }, + { + -- Allowed values are: USER, AI, SYSTEM + ["Role"] = "AI", + ["Content"] = "Of course. What do you need?" + } + } +}