refactor: change the AI path
This commit is contained in:
parent
964e1a10e4
commit
a684cd5a6e
|
|
@ -71,7 +71,7 @@ export const getAIRecommendation = async (
|
|||
options?: { signal?: AbortSignal },
|
||||
): Promise<AIRecommendationResponse> => {
|
||||
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),
|
||||
|
|
|
|||
Loading…
Reference in New Issue