Update local.js

Made Andy-4 the default model if the Ollama API is the only thing specified
This commit is contained in:
Sweaterdog 2025-05-22 19:13:52 -07:00 committed by GitHub
parent d2a3e11fdd
commit d32dcdc887
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,7 +10,7 @@ export class Local {
}
async sendRequest(turns, systemMessage) {
let model = this.model_name || 'llama3.1'; // Updated to llama3.1, as it is more performant than llama3
let model = this.model_name || 'sweaterdog/andy-4:latest'; // Changed to Andy-4
let messages = strictFormat(turns);
messages.unshift({ role: 'system', content: systemMessage });