mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-08-20 20:12:57 +00:00
Add example chat template to the example plugin configuration
This commit is contained in:
parent
825b666001
commit
021455bdd4
@ -69,3 +69,27 @@ CONFIG["SETTINGS"] = {}
|
|||||||
-- Configure the user permission to add providers:
|
-- Configure the user permission to add providers:
|
||||||
-- Allowed values are: true, false
|
-- Allowed values are: true, false
|
||||||
-- CONFIG["SETTINGS"]["DataApp.AllowUserToAddProvider"] = false
|
-- 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"] = "<user-friendly name of the chat template>",
|
||||||
|
["SystemPrompt"] = "You are <Company Name>'s helpful AI assistant for <Department Name>.",
|
||||||
|
["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?"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user