From c2fb041285c912121188ac4806d15855e1868e7f Mon Sep 17 00:00:00 2001 From: Showdown76py Date: Mon, 19 May 2025 20:20:00 +0200 Subject: [PATCH] fix: truncate message content and image data to improve processing efficiency --- ai/processor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ai/processor.py b/ai/processor.py index 999afb1..8c3e28e 100644 --- a/ai/processor.py +++ b/ai/processor.py @@ -91,7 +91,7 @@ class AIProcessor: cps = [ aic.Message( role=msg.role, - content=msg.content, + content=msg.content[:80], image=msg.image[:20] if isinstance(msg.image, str) else None, # type: ignore disable_image=msg.disable_image, name=msg.name,