From 75fa4cea8bfa8965de03b96789d97a9f384e80d5 Mon Sep 17 00:00:00 2001 From: matty Date: Mon, 4 Aug 2025 11:56:06 +0000 Subject: [PATCH] jorkin my preanits --- .gitignore | 2 +- src/main.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index ee57a42..13b8808 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ node_modules # Keep environment variables out of version control -.env +.env* *.log *.db /dist diff --git a/src/main.ts b/src/main.ts index 10ed306..790bcf0 100644 --- a/src/main.ts +++ b/src/main.ts @@ -48,10 +48,10 @@ export const envConfig = { }; const ollamaConfig: OllamaConfigOptions = { - temperature: 0.6, + temperature: 0.7, top_p: 0.85, - top_k: 40, - num_ctx: 8192, + top_k: 60, + num_ctx: 16384, // maximum context window for Llama 3.1 repeat_penalty: 1.1, }; @@ -111,7 +111,7 @@ const generateOllamaRequest = async ( ) .join( "\n" - )}\nReply as if you are a party to the conversation. If '@nice-ai' is mentioned, respond directly. Prefix usernames with '@' when addressing them.`; + )}\nReply as if you are a party to the conversation. When 'nice-ai' or 'Lexi' is mentioned, the user is speaking to or referencing you. Prefix usernames with '@' when addressing them.`; } // Switch to chat request format (messages array auto-handles Llama 3 template)