refactor: change the AI path

This commit is contained in:
Mahen 2026-04-13 13:09:51 +07:00
parent 964e1a10e4
commit a684cd5a6e
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ export const getAIRecommendation = async (
options?: { signal?: AbortSignal }, options?: { signal?: AbortSignal },
): Promise<AIRecommendationResponse> => { ): Promise<AIRecommendationResponse> => {
console.log("Fetching to FastAPI..."); console.log("Fetching to FastAPI...");
const aiRes = await fetch(aiRecommendPath, { const aiRes = await fetch(`${process.env.BACKEND_URL}/recommend`, {
method: "POST", method: "POST",
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
body: JSON.stringify(payload), body: JSON.stringify(payload),