Attach image to a chat? #451
Answered
by
matt-o-matic
matt-o-matic
asked this question in
Q&A
|
How can I use this API wrapper to attach an image to chat? I assume I would upload the image then attach a reference to it in the chat instance, but i am not sure. I don't see any examples of any of the client types using an uploaded file. |
Answered by
matt-o-matic
Jul 16, 2024
Replies: 1 comment
|
As it turns out I was wrong in my approach. When using GPT-4o you can simply add images to your user content. Basically enter whatever would be in the src attribute of an img tag. So not JUST base64, but in the format of DATA:blahblah. There might be other ways of doing this, but this certainly seems to work for the Omni model. |
0 replies
Answer selected by
matt-o-matic
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As it turns out I was wrong in my approach. When using GPT-4o you can simply add images to your user content.
Basically enter whatever would be in the src attribute…