From e89efe85f2a124a4b45ca07cfcbd22955e3f7eba Mon Sep 17 00:00:00 2001 From: The Ghost of FOSS' Future <163201376+sneedgroup-holder@users.noreply.github.com> Date: Tue, 17 Sep 2024 08:14:43 -0500 Subject: [PATCH] Update index.html --- index.html | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/index.html b/index.html index e283522..540a61e 100644 --- a/index.html +++ b/index.html @@ -45,11 +45,7 @@ } function generateHTMLFromPrompt(prompt) { - const url = `https://olproxy.nodemixaholic.com`; // Replace with your proxy server URL and port - - const body = new URLSearchParams(); - body.append('model', 'starcoder2:7b'); - + const url = `http://localhost:11434`; // localhost ollama const answerCount = 0; // Assuming you want this to start at 0 if (answerCount < 1) { @@ -69,12 +65,10 @@ Do NOT use external libraries. Fix any bugs as well.`; } - body.append('prompt', prompt); - - //const body = JSON.stringify({ - //model: "starcoder2:7b", - //prompt: prompt // User's prompt from the text area - //}); + const body = JSON.stringify({ + model: "starcoder2:7b", + prompt: prompt // User's prompt from the text area + }); return fetch(url, { method: "POST",