mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-08-08 08:15:38 +02:00
Merge branch 'main' into vision
This commit is contained in:
commit
8234af9585
3 changed files with 4 additions and 1 deletions
|
@ -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.
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue