api changes

This commit is contained in:
Raven Scott 2025-01-13 23:25:22 -05:00
parent a05753a28a
commit 3d33c7ef84

View File

@ -22,7 +22,7 @@ async function sendMessage() {
toggleLoading(true); // Show loading indicator toggleLoading(true); // Show loading indicator
try { try {
const response = await fetch('https://infer.x64.world/chat', { const response = await fetch('https://infer.x64.world/api/v1/chat', {
method: 'POST', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json' 'Content-Type': 'application/json'
@ -177,7 +177,7 @@ function handleErrorResponse(status) {
// Helper function to reset the conversation on the server // Helper function to reset the conversation on the server
async function sendResetRequest() { 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', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json' 'Content-Type': 'application/json'