diff --git a/frontend/components/editor/AIChat/lib/chatUtils.ts b/frontend/components/editor/AIChat/lib/chatUtils.ts index 21f3004..9a375c4 100644 --- a/frontend/components/editor/AIChat/lib/chatUtils.ts +++ b/frontend/components/editor/AIChat/lib/chatUtils.ts @@ -88,7 +88,7 @@ export const handleSend = async ( content: msg.content })); - const response = await fetch(`${process.env.NEXT_PUBLIC_API_URL}/api`, { + const response = await fetch(`${process.env.NEXT_PUBLIC_AI_WORKER_URL}/api`, { method: 'POST', headers: { 'Content-Type': 'application/json',