From 73e11ff6bb11c0dcefc3b81624cc5065fa060cd7 Mon Sep 17 00:00:00 2001 From: Sweaterdog Date: Sat, 15 Feb 2025 10:20:02 -0800 Subject: [PATCH] Update prompter.js Fixed chat.model typos --- src/models/prompter.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/models/prompter.js b/src/models/prompter.js index eb14c29..4a42fec 100644 --- a/src/models/prompter.js +++ b/src/models/prompter.js @@ -131,10 +131,10 @@ export class Prompter { model_profile.api = 'mistral'; else if (profile.model.includes("groq/") || profile.model.includes("groqcloud/")) profile.api = 'groq'; - else if (chat.model.includes('hf:')) - chat.api = "glhf"; - else if (chat.model.includes('hyperbolic:')|| chat.model.includes('hb:')) - chat.api = "hyperbolic"; + else if (profile.model.includes('hf:')) + profile.api = "glhf"; + else if (profile.model.includes('hyperbolic:')|| chat.model.includes('hb:')) + profile.api = "hyperbolic"; else if (profile.model.includes('novita/')) profile.api = 'novita'; else if (profile.model.includes('qwen'))