From e84cc60a77405c2cf46d546733c3b10b2e5ef404 Mon Sep 17 00:00:00 2001 From: Sweaterdog Date: Sun, 23 Feb 2025 21:13:47 -0800 Subject: [PATCH] Update prompter.js Fixed a MAJOR bug in prompter.js, preventing any model besides llama3 from being used via ollama --- src/models/prompter.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/models/prompter.js b/src/models/prompter.js index f130fe2..9b7d29e 100644 --- a/src/models/prompter.js +++ b/src/models/prompter.js @@ -145,10 +145,8 @@ export class Prompter { profile.api = 'xai'; else if (profile.model.includes('deepseek')) profile.api = 'deepseek'; - else if (profile.model.includes('llama3')) - profile.api = 'ollama'; - else - throw new Error('Unknown model:', profile.model); + else + profile.api = 'ollama'; // Fixed here to make it so if the model does not meet this criteria, it is an Ollama model, instead of blocking all models but llama3, which was an odd choice. } return profile; } @@ -379,4 +377,4 @@ export class Prompter { goal.quantity = parseInt(goal.quantity); return goal; } -} \ No newline at end of file +}