From cf53a3ab919431c67de8a21acfd3199daf76c594 Mon Sep 17 00:00:00 2001 From: nodemixaholic Date: Fri, 15 Mar 2024 21:40:11 +0000 Subject: [PATCH] Update 'index.js' --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index ca3ea5e..5db1a7c 100644 --- a/index.js +++ b/index.js @@ -53,8 +53,6 @@ function getLangID() { } } -let answer = await instance.prompt(`${problem} - This must be coded in pure ${getLangID()}, no external libraries or requirements. Please provide the code, the full code, and nothing but the code. No chit-chat, no markdown, just code.`); - function replaceAll(str, find, replace) { return str.replace(new RegExp(find, 'g'), replace); } @@ -63,6 +61,7 @@ async function main() { model: "codellama", url: "http://127.0.0.1:11434/api/", }); + let answer = await instance.prompt(`${problem} - This must be coded in pure ${getLangID()}, no external libraries or requirements. Please provide the code, the full code, and nothing but the code. No chit-chat, no markdown, just code.`); let generation = 1; let answerParsed = "" let problemSolved = false;