mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-07-15 12:35:16 +02:00
up-to-date gpt, prompt tweaks
This commit is contained in:
parent
5bf147fc40
commit
748748367d
3 changed files with 3 additions and 2 deletions
|
@ -4,6 +4,6 @@
|
||||||
"port": 55916,
|
"port": 55916,
|
||||||
"auth": "offline",
|
"auth": "offline",
|
||||||
|
|
||||||
"model": "gemini-1.0-pro",
|
"model": "gpt-3.5-turbo-0125",
|
||||||
"allow_insecure_coding": false
|
"allow_insecure_coding": false
|
||||||
}
|
}
|
|
@ -25,7 +25,7 @@ export const actionsList = [
|
||||||
description: 'Perform new and unknown custom behaviors that are not available as a command by writing code.',
|
description: 'Perform new and unknown custom behaviors that are not available as a command by writing code.',
|
||||||
perform: async function (agent) {
|
perform: async function (agent) {
|
||||||
if (!settings.allow_insecure_coding)
|
if (!settings.allow_insecure_coding)
|
||||||
return 'Agent is not allowed to write code.';
|
return 'newAction Failed! Agent is not allowed to write code. Notify the user.';
|
||||||
return await agent.coder.generateCode(agent.history);
|
return await agent.coder.generateCode(agent.history);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -13,6 +13,7 @@ export class Gemini {
|
||||||
}
|
}
|
||||||
|
|
||||||
async sendRequest(turns, systemMessage) {
|
async sendRequest(turns, systemMessage) {
|
||||||
|
systemMessage += "\nBegin the conversation:\n";
|
||||||
const messages = [{'role': 'system', 'content': systemMessage}].concat(turns);
|
const messages = [{'role': 'system', 'content': systemMessage}].concat(turns);
|
||||||
let prompt = "";
|
let prompt = "";
|
||||||
let role = "";
|
let role = "";
|
||||||
|
|
Loading…
Add table
Reference in a new issue