Description
I get this error when a model like claude is trying to read file attachments that are images (.png, jpeg), thus crashing with token count limit.
I'd be great to perform token count before the request is getting sent to the model. In case, it exceeds the images shall be compressed to a reasonable size.
Plugins
No response
OpenCode version
1.1.48
Steps to reproduce
- Let the model download an image (for e.g. via MPC), or python script ivocation, or curl
- The AI model tries to read downloaded image(s)
Screenshot and/or share link
No response
Operating System
Windows 11
Terminal
Windows Terminal
Description
I get this error when a model like claude is trying to read file attachments that are images (.png, jpeg), thus crashing with token count limit.
I'd be great to perform token count before the request is getting sent to the model. In case, it exceeds the images shall be compressed to a reasonable size.
Plugins
No response
OpenCode version
1.1.48
Steps to reproduce
Screenshot and/or share link
No response
Operating System
Windows 11
Terminal
Windows Terminal