forked from snxraven/ravenscott-blog
api changes
This commit is contained in:
parent
a05753a28a
commit
3d33c7ef84
@ -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'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user