Merge branch 'main' into vision

This commit is contained in:
MaxRobinsonTheGreat 2025-03-07 16:39:34 -06:00
commit 8234af9585
3 changed files with 4 additions and 1 deletions

View file

@ -36,6 +36,7 @@ export default
"allow_insecure_coding": false, // allows newAction command and model can write/run code on your computer. enable at own risk "allow_insecure_coding": false, // allows newAction command and model can write/run code on your computer. enable at own risk
"allow_vision": false, // allows vision model to interpret screenshots as inputs "allow_vision": false, // allows vision model to interpret screenshots as inputs
"blocked_actions" : [], // commands to disable and remove from docs. Ex: ["!setMode"]
"code_timeout_mins": -1, // minutes code is allowed to run. -1 for no timeout "code_timeout_mins": -1, // minutes code is allowed to run. -1 for no timeout
"relevant_docs_count": 5, // Parameter: -1 = all, 0 = no references, 5 = five references. If exceeding the maximum, all reference documents are returned. "relevant_docs_count": 5, // Parameter: -1 = all, 0 = no references, 5 = five references. If exceeding the maximum, all reference documents are returned.

View file

@ -47,7 +47,7 @@ export class Agent {
await this.prompter.initExamples(); await this.prompter.initExamples();
console.log('Initializing task...'); console.log('Initializing task...');
this.task = new Task(this, task_path, task_id); this.task = new Task(this, task_path, task_id);
const blocked_actions = this.task.blocked_actions || []; const blocked_actions = settings.blocked_actions.concat(this.task.blocked_actions || []);
blacklistCommands(blocked_actions); blacklistCommands(blocked_actions);
serverProxy.connect(this); serverProxy.connect(this);

View file

@ -152,6 +152,8 @@ export class Prompter {
profile.api = 'xai'; profile.api = 'xai';
else if (profile.model.includes('deepseek')) else if (profile.model.includes('deepseek'))
profile.api = 'deepseek'; profile.api = 'deepseek';
else if (profile.model.includes('mistral'))
profile.api = 'mistral';
else if (profile.model.includes('llama3')) else if (profile.model.includes('llama3'))
profile.api = 'ollama'; profile.api = 'ollama';
else else