Issues when using base64 encoded images with threads
I get the following error when trying to use a base64 encoded image in an agent call that is also passing a thread/resouce when using the latest 1.0 beta versinon of Mastra
Error:
Here is a quick repo that showcases the error. Just run the weather workflow.
https://github.com/paulmeyerle/mastra-thread-example/
GitHub
GitHub - paulmeyerle/mastra-thread-example: Repo showcasing a bug i...
Repo showcasing a bug in the Mastra 1.0 beta when using base64 encoded images in a user message - paulmeyerle/mastra-thread-example
3 Replies
๐ Created GitHub issue: https://github.com/mastra-ai/mastra/issues/10480
๐ If you're experiencing an error, please provide a minimal reproducible example whenever possible to help us resolve it quickly.
๐ Thank you for helping us improve Mastra!
Hey @paul_validity thanks for reporting this! we'll take a look!
I have a fix here: https://github.com/mastra-ai/mastra/pull/10483
Will release in 1.0.0-beta and 0.x today/tmrw
GitHub
base64 fixes for agent calls by abhiaiyer91 ยท Pull Request #10483 ...
base64 encoded images
Fixes #10480
Fixed "Invalid URL" error when using base64 encoded images (without data: prefix) in agent calls with threads and resources. Raw base64 strings ...