Skip to content

Error "image exceeds 5 MB maximum: 11179984 bytes > 5242880 bytes" when sending images #2

@akemmanuel

Description

@akemmanuel

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

  1. Open OpenGUI
  2. Add an image that is over 5MB to any prompt
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions