up-to-date gpt, prompt tweaks

This commit is contained in:
MaxRobinsonTheGreat 2024-02-20 19:09:56 -06:00
parent 5bf147fc40
commit 748748367d
3 changed files with 3 additions and 2 deletions

View file

@ -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
} }

View file

@ -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);
} }
}, },

View file

@ -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 = "";