From 9e13db20204e43f8a0190ed0be33b0ef6060c327 Mon Sep 17 00:00:00 2001 From: Akhileshrangani4 Date: Thu, 17 Oct 2024 22:28:25 -0400 Subject: [PATCH] chore: update env variable for ai worker --- frontend/components/editor/AIChat/lib/chatUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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',