Compare commits

...

1 Commits

Author SHA1 Message Date
Oleksandr Kozachuk 5a3623f813 strengthen picture_edit hint: model must use edit for previously shared images 2026-07-13 16:45:15 +02:00
+5 -1
View File
@@ -177,7 +177,11 @@ class AIResponder(AIResponderBase):
recent_images = self.image_cache.recent(message.channel, 4) recent_images = self.image_cache.recent(message.channel, 4)
if recent_images: if recent_images:
# the model cannot use picture_edit unless told images exist (IMG-16) # 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 return context
def message(self, message: AIMessage, limit: Optional[int] = None) -> List[Dict[str, Any]]: def message(self, message: AIMessage, limit: Optional[int] = None) -> List[Dict[str, Any]]: