From 42dfe39862a607b28d107e40c47c8d48aa0c1d42 Mon Sep 17 00:00:00 2001 From: Sweaterdog Date: Fri, 28 Feb 2025 12:46:55 -0800 Subject: [PATCH] Update prompter.js Fixed minor error in prompter.js that disabled Hyperbolic support --- src/models/prompter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/models/prompter.js b/src/models/prompter.js index 6c8d537..5c0bee1 100644 --- a/src/models/prompter.js +++ b/src/models/prompter.js @@ -143,7 +143,7 @@ export class Prompter { profile.api = 'groq'; else if (profile.model.includes('hf:')) profile.api = "glhf"; - else if (profile.model.includes('hyperbolic:')|| chat.model.includes('hb:')) + else if (profile.model.includes('hyperbolic:')|| profile.model.includes('hb:')) profile.api = "hyperbolic"; else if (profile.model.includes('novita/')) profile.api = 'novita'; @@ -178,7 +178,7 @@ export class Prompter { else if (profile.api === 'glhf') model = new glhf(profile.model, profile.url, profile.params); else if (profile.api === 'hyperbolic') - model = new hyperbolic(profile.model.replace('hyperbolic:', '').replace('hb:', ''), profile.url, profile.params); // Yes you can hate me for using curly braces on this little bit of code for defining the hyperbolic endpoint + model = new hyperbolic(profile.model.replace('hyperbolic:', '').replace('hb:', ''), profile.url, profile.params); else if (profile.api === 'huggingface') model = new HuggingFace(profile.model, profile.url, profile.params); else if (profile.api === 'novita')