mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-07-19 14:35:17 +02:00
Update prompter.js
Fixed minor error in prompter.js that disabled Hyperbolic support
This commit is contained in:
parent
1f17fc95e7
commit
42dfe39862
1 changed files with 2 additions and 2 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Reference in a new issue