From 1a39eb3863dc9261ebe0e2ef85c48d1b1fba2bda Mon Sep 17 00:00:00 2001 From: Justin McReynolds Date: Tue, 15 Oct 2024 22:04:22 -0700 Subject: [PATCH] Switch from internal /api/llm-chat to external service (hard-coded for now) --- static/ips/assets/js/llmChat.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/ips/assets/js/llmChat.js b/static/ips/assets/js/llmChat.js index 33be48dd..cc635d15 100644 --- a/static/ips/assets/js/llmChat.js +++ b/static/ips/assets/js/llmChat.js @@ -23,7 +23,8 @@ async function sendMessage() { chatInput.value = ''; try { - const response = await fetch('/api/llm-chat', { + // FIXME use a .env variable for this URL, a la the VITE configs... + const response = await fetch('https://llm-chat.fl.mcjustin.dev.cirg.uw.edu/api/chat', { method: 'POST', headers: { 'Content-Type': 'application/json',