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;