From fe60860b8bc576a1927f2b9772e888fc0eb18876 Mon Sep 17 00:00:00 2001 From: LoriaLawrenceZ Date: Mon, 23 Sep 2024 20:40:12 -0300 Subject: [PATCH] [fix] Usando link do vercel no lugar de localhost Signed-off-by: LoriaLawrenceZ --- src/pages/Chat/openai.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Chat/openai.js b/src/pages/Chat/openai.js index c58fea2..843eef9 100644 --- a/src/pages/Chat/openai.js +++ b/src/pages/Chat/openai.js @@ -4,7 +4,7 @@ export const handleOpenAiRequest = async (prompt) => { prompt = ""; // Envia requisição com a mensagem para a API do ChatBot - const resposta = await fetch("http://127.0.0.1:3000/chat", { + const resposta = await fetch("https://dex-backend-deployment.vercel.app/chat", { method: "POST", headers: { "Content-Type": "application/json",