Description
Sometimes if I add an image to my prompt or the ai uses the "read" tool to read an image, i get the error: "image exceeds 5 MB maximum: 11179984 bytes > 5242880 bytes"
Steps to Reproduce
- Open OpenGUI
- Add an image that is over 5MB to any prompt
- get the err
Expected Behavior
It should compress the image somehow or whatever.
Actual Behavior
It sends the raw image to OpenCode/the provider and I get this error.
Environment
- OS: Any OS
- OpenGUI version: v0.1.11
- OpenCode version: idk, latest i think
- Installation method: doesnt matter
Screenshots
If applicable, add screenshots to help explain the problem.
Additional Context
If I make a screenshot instead of sending the image, also if the screenshot it the same px size as the original image, it works normally.