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'