From a684cd5a6e6f941c22cd2ad885dba438f4fb9ade Mon Sep 17 00:00:00 2001 From: Mahen Date: Mon, 13 Apr 2026 13:09:51 +0700 Subject: [PATCH] refactor: change the AI path --- src/services/analyze.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/analyze.service.ts b/src/services/analyze.service.ts index f4a916b..3518249 100644 --- a/src/services/analyze.service.ts +++ b/src/services/analyze.service.ts @@ -71,7 +71,7 @@ export const getAIRecommendation = async ( options?: { signal?: AbortSignal }, ): Promise => { console.log("Fetching to FastAPI..."); - const aiRes = await fetch(aiRecommendPath, { + const aiRes = await fetch(`${process.env.BACKEND_URL}/recommend`, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(payload),