From 5a3623f8132ed627dcceae6773dd7d070a3cc6e6 Mon Sep 17 00:00:00 2001 From: Oleksandr Kozachuk Date: Mon, 13 Jul 2026 16:45:15 +0200 Subject: [PATCH] strengthen picture_edit hint: model must use edit for previously shared images --- fjerkroa_bot/ai_responder.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fjerkroa_bot/ai_responder.py b/fjerkroa_bot/ai_responder.py index 6f4be01..9030d23 100644 --- a/fjerkroa_bot/ai_responder.py +++ b/fjerkroa_bot/ai_responder.py @@ -177,7 +177,11 @@ class AIResponder(AIResponderBase): recent_images = self.image_cache.recent(message.channel, 4) if recent_images: # the model cannot use picture_edit unless told images exist (IMG-16) - context.append(f"recent images in this channel: {len(recent_images)} (set picture_edit=true to edit/remix the newest)") + context.append( + f"recent images in this channel: {len(recent_images)}. When the user asks to modify, reuse, combine or" + " include a previously shared image, you MUST set picture_edit=true — text-to-image cannot see earlier" + " images; only picture_edit passes them to the image model." + ) return context def message(self, message: AIMessage, limit: Optional[int] = None) -> List[Dict[str, Any]]: