Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
joshua-mo-143 opened this issue Feb 22, 2025 · 1 comment
Open
1 task done

Comments

@joshua-mo-143
Copy link
Contributor

  • 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

@0xMochan
Copy link
Contributor

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants