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