diff --git a/app/MindWork AI Studio/Plugins/configuration/plugin.lua b/app/MindWork AI Studio/Plugins/configuration/plugin.lua index c80b8b28..389022b5 100644 --- a/app/MindWork AI Studio/Plugins/configuration/plugin.lua +++ b/app/MindWork AI Studio/Plugins/configuration/plugin.lua @@ -49,26 +49,26 @@ CONFIG = {} CONFIG["LLM_PROVIDERS"] = {} -- An example of a configuration for a self-hosted server: -CONFIG["LLM_PROVIDERS"][#CONFIG["LLM_PROVIDERS"]+1] = { - ["Id"] = "00000000-0000-0000-0000-000000000000", - ["InstanceName"] = "", - ["UsedLLMProvider"] = "SELF_HOSTED", - - -- Allowed values for Host are: LM_STUDIO, LLAMACPP, OLLAMA, and VLLM - ["Host"] = "OLLAMA", - ["Hostname"] = "", - - -- Optional: Additional parameters for the API. - -- Please refer to the documentation of the selected host for details. - -- Might be something like ... \"temperature\": 0.5 ... for one parameter. - -- Could be something like ... \"temperature\": 0.5, \"max_tokens\": 1000 ... for multiple parameters. - -- Please do not add the enclosing curly braces {} here. Also, no trailing comma is allowed. - ["AdditionalJsonApiParameters"] = "", - ["Model"] = { - ["Id"] = "", - ["DisplayName"] = "", - } -} +-- CONFIG["LLM_PROVIDERS"][#CONFIG["LLM_PROVIDERS"]+1] = { +-- ["Id"] = "00000000-0000-0000-0000-000000000000", +-- ["InstanceName"] = "", +-- ["UsedLLMProvider"] = "SELF_HOSTED", +-- +-- -- Allowed values for Host are: LM_STUDIO, LLAMACPP, OLLAMA, and VLLM +-- ["Host"] = "OLLAMA", +-- ["Hostname"] = "", +-- +-- -- Optional: Additional parameters for the API. +-- -- Please refer to the documentation of the selected host for details. +-- -- Might be something like ... \"temperature\": 0.5 ... for one parameter. +-- -- Could be something like ... \"temperature\": 0.5, \"max_tokens\": 1000 ... for multiple parameters. +-- -- Please do not add the enclosing curly braces {} here. Also, no trailing comma is allowed. +-- ["AdditionalJsonApiParameters"] = "", +-- ["Model"] = { +-- ["Id"] = "", +-- ["DisplayName"] = "", +-- } +-- } -- Transcription providers for voice-to-text functionality: CONFIG["TRANSCRIPTION_PROVIDERS"] = {} @@ -167,52 +167,53 @@ CONFIG["SETTINGS"] = {} 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 . Your task is ...", - ["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?" - } - } -} +-- CONFIG["CHAT_TEMPLATES"][#CONFIG["CHAT_TEMPLATES"]+1] = { +-- ["Id"] = "00000000-0000-0000-0000-000000000000", +-- ["Name"] = "", +-- ["SystemPrompt"] = "You are 's helpful AI assistant for . Your task is ...", +-- ["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?" +-- } +-- } +-- } -- An example chat template with file attachments: -- This template automatically attaches specified files when the user selects it. -CONFIG["CHAT_TEMPLATES"][#CONFIG["CHAT_TEMPLATES"]+1] = { - ["Id"] = "00000000-0000-0000-0000-000000000001", - ["Name"] = "Document Analysis Template", - ["SystemPrompt"] = "You are an expert document analyst. Please analyze the attached documents and provide insights.", - ["PredefinedUserPrompt"] = "Please analyze the attached company guidelines and summarize the key points.", - ["AllowProfileUsage"] = true, - -- Optional: Pre-attach files that will be automatically included when using this template. - -- These files will be loaded when the user selects this chat template. - -- Note: File paths must be absolute paths and accessible to all users. - ["FileAttachments"] = { - "G:\\Company\\Documents\\Guidelines.pdf", - "G:\\Company\\Documents\\CompanyPolicies.docx" - }, - ["ExampleConversation"] = { - { - ["Role"] = "USER", - ["Content"] = "I have attached the company documents for analysis." - }, - { - ["Role"] = "AI", - ["Content"] = "Thank you. I'll analyze the documents and provide a comprehensive summary." - } - } -} +-- CONFIG["CHAT_TEMPLATES"][#CONFIG["CHAT_TEMPLATES"]+1] = { +-- ["Id"] = "00000000-0000-0000-0000-000000000001", +-- ["Name"] = "Document Analysis Template", +-- ["SystemPrompt"] = "You are an expert document analyst. Please analyze the attached documents and provide insights.", +-- ["PredefinedUserPrompt"] = "Please analyze the attached company guidelines and summarize the key points.", +-- ["AllowProfileUsage"] = true, +-- -- Optional: Pre-attach files that will be automatically included when using this template. +-- -- These files will be loaded when the user selects this chat template. +-- -- Note: File paths must be absolute paths and accessible to all users. +-- ["FileAttachments"] = { +-- "G:\\Company\\Documents\\Guidelines.pdf", +-- "G:\\Company\\Documents\\CompanyPolicies.docx" +-- }, +-- ["ExampleConversation"] = { +-- { +-- ["Role"] = "USER", +-- ["Content"] = "I have attached the company documents for analysis." +-- }, +-- { +-- ["Role"] = "AI", +-- ["Content"] = "Thank you. I'll analyze the documents and provide a comprehensive summary." +-- } +-- } +-- } + -- Document analysis policies for this configuration: CONFIG["DOCUMENT_ANALYSIS_POLICIES"] = {} @@ -247,9 +248,9 @@ CONFIG["DOCUMENT_ANALYSIS_POLICIES"] = {} CONFIG["PROFILES"] = {} -- A simple profile template: -CONFIG["PROFILES"][#CONFIG["PROFILES"]+1] = { - ["Id"] = "00000000-0000-0000-0000-000000000000", - ["Name"] = "", - ["NeedToKnow"] = "I like to cook in my free time. My favorite meal is ...", - ["Actions"] = "Please always ensure the portion size is ..." -} \ No newline at end of file +-- CONFIG["PROFILES"][#CONFIG["PROFILES"]+1] = { +-- ["Id"] = "00000000-0000-0000-0000-000000000000", +-- ["Name"] = "", +-- ["NeedToKnow"] = "I like to cook in my free time. My favorite meal is ...", +-- ["Actions"] = "Please always ensure the portion size is ..." +-- } \ No newline at end of file