Dalle Image Agent Download

Hello,

I’m evaluating the framework, which has ben awesome so far. I have a question about how to work with images.

I’ve successfully created an agent that uses the Dalle tool, but I’m not sure if you have support for working locally with the output of the agent e.g. a file?

I found an example in the documentation that describes how to get to the image url. Does this mean I should then just pen some code to download that image or can I use the FileTools tool to get a handle on the generated output?

The OpenAI api has support for setting the response type to base64 when dealing with images, is this an option here?

Thanks

Hi @AndyTee
Thank you for reaching out and using Phidata! I’ve tagged the relevant engineers to assist you with your query. We aim to respond within 24 hours.
If this is urgent, please feel free to let us know, and we’ll do our best to prioritize it.
Thanks for your patience!

Hi @AndyTee
Check out this cookbook that does what you are describing.

We don’t yet allow changing the response type, but its a valid request. I’ll add it to our roadmap

Hi @Dirk

Thanks, thats ideal. That example wasn’t there when I was doing this work