From 3d33c7ef848860c6e02e7c67af49b7781062b2b5 Mon Sep 17 00:00:00 2001 From: Raven Scott Date: Mon, 13 Jan 2025 23:25:22 -0500 Subject: [PATCH] api changes --- public/js/chat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/chat.js b/public/js/chat.js index b628cba..a70bb26 100644 --- a/public/js/chat.js +++ b/public/js/chat.js @@ -22,7 +22,7 @@ async function sendMessage() { toggleLoading(true); // Show loading indicator try { - const response = await fetch('https://infer.x64.world/chat', { + const response = await fetch('https://infer.x64.world/api/v1/chat', { method: 'POST', headers: { 'Content-Type': 'application/json' @@ -177,7 +177,7 @@ function handleErrorResponse(status) { // Helper function to reset the conversation on the server async function sendResetRequest() { - const response = await fetch('https://infer.x64.world/reset-conversation', { + const response = await fetch('https://infer.x64.world/api/v1/reset-conversation', { method: 'POST', headers: { 'Content-Type': 'application/json'