From 5db45375f3390188795d566d998a459e5df62dde Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sat, 14 Mar 2026 00:33:21 +0100 Subject: [PATCH] Add sanitizeAiResponse function call in App.tsx --- src/App.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/App.tsx b/src/App.tsx index 2b12efd..8ac757c 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1212,7 +1212,8 @@ export default function App() { throw new Error(`Ollama responded with ${response.status}`); } const data = await response.json(); - const resultText = typeof data?.response === "string" ? data.response.trim() : ""; + const resultText = + typeof data?.response === "string" ? sanitizeAiResponse(data.response) : ""; if (!resultText) { throw new Error("Ollama returned an empty response."); }