v3.1.5
π Bug Fix: Better Fake Image Detection
Problem: Some models hallucinate image generation by describing an image in text without calling the generate_image tool. The previous fix only detected placeholder URLs.
Fix:
- Now also detects when the user asked for an image but no tool was called
- Checks for image-related keywords in the user's message (English + Portuguese)
- Strengthened system prompt to explicitly forbid placeholder URLs
- Clearer error message explaining the correct flow:
- Selected model should call
generate_imagetool with a detailed prompt - Tool internally calls the image model (Flux.1-Dev, etc.)
- Generated image is returned and displayed
- Selected model should call
Changes:
ViewModels/ChatViewModel.swiftβ Detect user image requests + missing tool callsModels/SystemPrompt.swiftβ Stronger anti-hallucination instructions- Bump version to 3.1.5