From 7a6fe5e3b22083a97b329952ad2b8ecadda66564 Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Tue, 21 Oct 2025 23:10:28 -0300 Subject: [PATCH] Add LLM configuration defaults --- migrations/6.0.6.sql | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 migrations/6.0.6.sql diff --git a/migrations/6.0.6.sql b/migrations/6.0.6.sql new file mode 100644 index 000000000..cee6d7f03 --- /dev/null +++ b/migrations/6.0.6.sql @@ -0,0 +1,11 @@ +-- Migration 6.0.6: Add LLM configuration defaults +-- Description: Configure local LLM server settings with model paths + +-- Insert LLM configuration with defaults +INSERT INTO server_configuration (id, config_key, config_value, config_type, description) VALUES + (gen_random_uuid()::text, 'LLM_LOCAL', 'true', 'boolean', 'Enable local LLM server'), + (gen_random_uuid()::text, 'LLM_MODEL_PATH', 'botserver-stack/data/llm/DeepSeek-R1-Distill-Qwen-1.5B-Q3_K_M.gguf', 'string', 'Path to LLM model file'), + (gen_random_uuid()::text, 'LLM_URL', 'http://localhost:8081', 'string', 'Local LLM server URL'), + (gen_random_uuid()::text, 'EMBEDDING_MODEL_PATH', 'botserver-stack/data/llm/DeepSeek-R1-Distill-Qwen-1.5B-Q3_K_M.gguf', 'string', 'Path to embedding model file'), + (gen_random_uuid()::text, 'EMBEDDING_URL', 'http://localhost:8082', 'string', 'Embedding server URL') +ON CONFLICT (config_key) DO NOTHING;