A clean and minimal youtube frontend, without all the ads and whistles
JavaScript
fetch 127.0.0.1 llm
Christian Fei1723a2cfdbda
diff --git a/lib/llm.js b/lib/llm.jsindex d0baef6..f434387 100644--- a/lib/llm.js+++ b/lib/llm.js@@ -1,8 +1,8 @@// export async function fetchCompletionLMSTUDIO (system, prompt, model = "meta-llama-3-8b-instruct") {-export async function fetchCompletionLMSTUDIO (system, prompt, model = "llama-3.2-3b-instruct") {+export async function fetchCompletionLMSTUDIO (system, prompt, model = "meta-llama-3.1-8b-instruct") {if (prompt.length > 10000) prompt = prompt.substring(0, 10000)try {- const response = await fetch('http://0.0.0.0:1234/v1/chat/completions', {+ const response = await fetch(`http://127.0.0.1:1234/v1/chat/completions`, {method: 'POST',headers: {'Content-Type': 'application/json'