Update prompter.js

Fixed minor error in prompter.js that disabled Hyperbolic support
This commit is contained in:
Sweaterdog 2025-02-28 12:46:55 -08:00 committed by GitHub
parent 1f17fc95e7
commit 42dfe39862
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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')