genkit icon indicating copy to clipboard operation
genkit copied to clipboard

[Go] Support for OpenAI image URL

Open emranbm opened this issue 7 months ago • 0 comments

Is your feature request related to a problem? Please describe. Using OpenAI plugin in Golang, ai.Part with the Kind of ai.PartMedia does not seem to support ImageURL as the content.

Describe the solution you'd like It'll be great to support image URL (e.g. https://google.com/image.png) without requiring it to be downloaded / encoded. The issue can be addressed through leveraging the ai.Part.Custom field.

Describe alternatives you've considered Of course, one way is to download and encode the image, although it forces a heavy bandwidth on the clients.

Thanks for the great kit!

emranbm avatar May 26 '25 14:05 emranbm