mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-07-19 14:35:17 +02:00
Update prompter.js
Fixed Ollama prompting issues.
This commit is contained in:
parent
951395a836
commit
d614d30764
1 changed files with 4 additions and 4 deletions
|
@ -127,6 +127,8 @@ export class Prompter {
|
|||
profile.api = 'google';
|
||||
else if (profile.model.includes('openrouter/'))
|
||||
profile.api = 'openrouter'; // must do before others bc shares model names
|
||||
else if (profile.model.includes('andy-'))
|
||||
profile.api = 'ollama'; // We have to check here since the installation for Andy-3.6 makes the username include "hf:" which is the same as glhf.chat, which will not work.
|
||||
else if (profile.model.includes('gpt') || profile.model.includes('o1')|| profile.model.includes('o3'))
|
||||
profile.api = 'openai';
|
||||
else if (profile.model.includes('claude'))
|
||||
|
@ -151,10 +153,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 this line, it had a bug where only llama3 models could be used in Mindcraft via Ollama, which was is not optimal.
|
||||
}
|
||||
return profile;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue