diff --git a/llama.cpp/server/public/index.html b/llama.cpp/server/public/index.html index 324c6412d4..e8c971d616 100644 --- a/llama.cpp/server/public/index.html +++ b/llama.cpp/server/public/index.html @@ -419,7 +419,7 @@ throw new Error("already running"); } controller.value = new AbortController(); - for await (const chunk of llama(prompt, llamaParams, { controller: controller.value, url_prefix: document.baseURI.replace(/\/+$/, '') })) { + for await (const chunk of llama(prompt, llamaParams, { controller: controller.value, url_prefix: new URL('.', document.baseURI).origin })) { const data = chunk.data; if (data.stop) {