aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorOxbian <oxbian@mailbox.org>2025-05-18 12:19:33 -0400
committerOxbian <oxbian@mailbox.org>2025-05-18 12:19:33 -0400
commitea5fe19ad751fd6fa686e502a5cf7f26a78668e9 (patch)
treecd005f10acc256613ef5a9b88cf36733659ea57f /config
parentfecb211130ec487c7c617d28419c6d0097f19783 (diff)
downloadNAI-ea5fe19ad751fd6fa686e502a5cf7f26a78668e9.tar.gz
NAI-ea5fe19ad751fd6fa686e502a5cf7f26a78668e9.zip
feat: refactor chat, resume into modules + color in UImain
Diffstat (limited to 'config')
-rw-r--r--config/categorize-LLM.json10
1 files changed, 5 insertions, 5 deletions
diff --git a/config/categorize-LLM.json b/config/categorize-LLM.json
index fd488c8..80fb74e 100644
--- a/config/categorize-LLM.json
+++ b/config/categorize-LLM.json
@@ -1,23 +1,23 @@
{
"url": "http://127.0.0.1:11434/api/chat",
"model": "llama3.2",
- "system_prompt": "You are a categorizer. Your role is to categorize in which category the last message fit the most 'chat' for simple conversation with the LLM, 'code' for code completion or request about technical subject around programming, 'wikipedia' for research of factual information, don't create new categories",
+ "system_prompt": "You are a strict categorizer. You must classify the user's last message into exactly one of the following categories: 'chat', 'code', or 'wikipedia'. Do not invent new categories. If the message doesn't clearly fit one, choose the closest matching category. Output only one of the allowed values. Never generate or suggest any category outside: 'chat', 'code', 'wikipedia'",
"tools": [
{
"type": "function",
"function": {
"name": "categorize_message",
- "description": "Classify the last message into a category (chat, code, wikipedia)",
+ "description": "You are a strict categorizer. You must classify the user's last message into exactly one of the following categories: 'chat', 'code', or 'wikipedia'. Do not invent new categories. If the message doesn't clearly fit one, choose the closest matching category. Output only one of the allowed values. Never generate or suggest any category outside: 'chat', 'code', 'wikipedia",
"parameters": {
"type" : "object",
"properties": {
- "category": {
+ "category_choice": {
"type": "string",
- "description": "The category in which the message fit the most e.g. 'chat', 'code', 'wikipedia'",
+ "description": "The category in which the message fit the most e.g. 'chat', 'code', 'wikipedia' only, don't create new categories",
"enum": ["chat", "code", "wikipedia"]
}
},
- "required": ["category"]
+ "required": ["category_choice"]
}
}
}
ArKa projects. All rights to me, and your next child right arm.