rig icon indicating copy to clipboard operation
rig copied to clipboard

feat: impl Into<completion::Message> for rig::providers::openai::ImageUrl

Open joshua-mo-143 opened this issue 10 months ago • 1 comments

  • [x] I have looked for existing issues (including closed) about this

Feature Request

We should implement Into<completion::Message> for the ImageUrl struct. This will allow us to use it for image input with OpenAI's chat completions API.

Motivation

Image input with OpenAI's chat completions API.

Proposal

Implement Into<completion::Message> for rig::providers::openai::ImageUrl.

Alternatives

none

joshua-mo-143 avatar Feb 22 '25 18:02 joshua-mo-143

To be honest, I want to actually create a more, well-encapsulated MessageBuilder that lets you easily create a lot of common Messages.

I did a little bit with impl Message but I think it could be well thought out!

0xMochan avatar Feb 24 '25 05:02 0xMochan