With this release, we have introduced massive structural improvements to our AI Assistant add-on, specifically focusing on the **Image Generation** capabilities! You can now seamlessly integrate and experience the newest generation of multimodal models offered via **OpenRouter** (including the GPT-5 Image series, Google Gemini Image suite, and Meta Muse Spark)!
Furthermore, trigger flexibility has been dramatically improved! We completely eradicated the frustrating issue where bots would accidentally reply with conversational text descriptions instead of generating actual drawings when prompted. Bots will now instantly identify your drawing commands anywhere inside a prompt and deliver stunning artwork!
[NEW] OpenRouter Multimodal Image Engine (message.images Array Parser):
Engineered an advanced parsing module capable of detecting and extracting generated graphics from the modern message.images data arrays returned by state-of-the-art OpenRouter chat/completions endpoints (such as GPT-5 Image and Gemini Image). Seamlessly supports both Base64 Data URIs and remote HTTP image urls!
[NEW] Added Latest Supported OpenRouter Image Models:
Revamped the image model selection dropdown in the Admin Control Panel (Bot -> Capabilities tab) to include highly economical and lightning-fast modern vision models:
OpenAI: GPT-5 Image Mini, GPT-5 Image, GPT-5.4 Image 2
Google: Gemini 2.5 Flash Image, Gemini 3.1 Flash Image, Gemini 3 Pro Image
Meta: Muse Spark 1.1
[ENHANCEMENT] Smart & Flexible Trigger Pattern Detection:
Removed the strict requirement (str_starts_with) where image triggering keywords (e.g., "create image:", "draw:") had to be positioned at the exact beginning of a sentence. Powered by our new substring scanner (mb_strpos), even if users prepend mentions, greetings, or extra words before the command, the bot instantly intercepts the trigger and routes it to the image creation engine.
[FIX] Resolved Bots Responding with Text Instead of Drawing Images:
Fixed an architectural logic flaw where uncaptured trigger prompts would fall through to standard conversational completion APIs, causing bots to describe imaginary photos with plain text instead of drawing them.
[FIX] Critical ImageFactoryService Bug & Silent Failure Handling:
Resolved a critical backend bug where generating images via background mentions caused a silent PHP fatal error (Class Not Found) due to an outdated class namespace reference (ImageFactory). Upgraded overall exception handling to capture low-level PHP \Throwable events cleanly without breaking queue execution.
Source:
xentr.net