From 748748367debb98ffc245dca54233a06ed6ec5cf Mon Sep 17 00:00:00 2001 From: MaxRobinsonTheGreat Date: Tue, 20 Feb 2024 19:09:56 -0600 Subject: [PATCH] up-to-date gpt, prompt tweaks --- settings.json | 2 +- src/agent/commands/actions.js | 2 +- src/models/gemini.js | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/settings.json b/settings.json index 4818718..d3db69c 100644 --- a/settings.json +++ b/settings.json @@ -4,6 +4,6 @@ "port": 55916, "auth": "offline", - "model": "gemini-1.0-pro", + "model": "gpt-3.5-turbo-0125", "allow_insecure_coding": false } \ No newline at end of file diff --git a/src/agent/commands/actions.js b/src/agent/commands/actions.js index 6db22d7..5909e75 100644 --- a/src/agent/commands/actions.js +++ b/src/agent/commands/actions.js @@ -25,7 +25,7 @@ export const actionsList = [ description: 'Perform new and unknown custom behaviors that are not available as a command by writing code.', perform: async function (agent) { 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); } }, diff --git a/src/models/gemini.js b/src/models/gemini.js index 6f8429d..e4ef358 100644 --- a/src/models/gemini.js +++ b/src/models/gemini.js @@ -13,6 +13,7 @@ export class Gemini { } async sendRequest(turns, systemMessage) { + systemMessage += "\nBegin the conversation:\n"; const messages = [{'role': 'system', 'content': systemMessage}].concat(turns); let prompt = ""; let role = "";