mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-08-02 21:35:31 +02:00
Update prompter.js
Fixed a MAJOR bug in prompter.js, preventing any model besides llama3 from being used via ollama
This commit is contained in:
parent
f313094cb5
commit
e84cc60a77
1 changed files with 3 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue