From 1a7622f4c5c6bdc1592fb9618d5831774ace888e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roger=20Mart=C3=ADnez?= Date: Fri, 13 Dec 2024 17:50:25 +0100 Subject: [PATCH] AAP-37349: Fix using the proper feedback endpoint. (#1460) Signed-off-by: romartin --- ansible_ai_connect_chatbot/src/useChatbot/useChatbot.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible_ai_connect_chatbot/src/useChatbot/useChatbot.ts b/ansible_ai_connect_chatbot/src/useChatbot/useChatbot.ts index 1a9a8f3a7..cb09df3c5 100644 --- a/ansible_ai_connect_chatbot/src/useChatbot/useChatbot.ts +++ b/ansible_ai_connect_chatbot/src/useChatbot/useChatbot.ts @@ -207,7 +207,7 @@ export const useChatbot = () => { const csrfToken = readCookie("csrftoken"); const resp = await axios.post( import.meta.env.PROD - ? "/api/v0/ai/chat/" + ? "/api/v0/ai/feedback/" : "http://localhost:8080/v1/feedback/", { chatFeedback: feedbackRequest,