From c7de415c7e4f385892d33257a71c2a3be6b07107 Mon Sep 17 00:00:00 2001 From: thedragonsinn <98635854+thedragonsinn@users.noreply.github.com> Date: Sun, 9 Feb 2025 09:07:39 +0530 Subject: [PATCH] fix code block formatting --- app/plugins/ai/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/plugins/ai/models.py b/app/plugins/ai/models.py index dfdb6f0..0f0c3c8 100644 --- a/app/plugins/ai/models.py +++ b/app/plugins/ai/models.py @@ -158,4 +158,4 @@ def get_response_text(response, quoted: bool = False): final_text = (text.strip() + sources).strip() - return f"**>\n{final_text}<**" if quoted else final_text + return f"**>\n{final_text}<**" if quoted and "```" not in final_text else final_text