rig
rig copied to clipboard
feat: impl Into<completion::Message> for rig::providers::openai::ImageUrl
- [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
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!