From 4d81445bbbec904bbced9c791903df7914dd7f4c Mon Sep 17 00:00:00 2001 From: Sweaterdog Date: Wed, 5 Mar 2025 17:25:22 -0800 Subject: [PATCH] Update local.js Updated the default API model from llama3 to llama3.1, llama3.1 is smarter for the same size. --- src/models/local.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/models/local.js b/src/models/local.js index ba78f53..e51bcf8 100644 --- a/src/models/local.js +++ b/src/models/local.js @@ -10,11 +10,11 @@ export class Local { } async sendRequest(turns, systemMessage) { - let model = this.model_name || 'llama3'; + let model = this.model_name || 'llama3.1'; // Updated to llama3.1, as it is more performant than llama3 let messages = strictFormat(turns); messages.unshift({ role: 'system', content: systemMessage }); - // We'll attempt up to 5 times for models like "deepseek-r1" if the tags are mismatched. + // We'll attempt up to 5 times for models with deepseek-r1-esk reasoning if the tags are mismatched. const maxAttempts = 5; let attempt = 0; let finalRes = null;