Attach image to a chat? #451
-
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. |
Beta Was this translation helpful? Give feedback.
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. |
Beta Was this translation helpful? Give feedback.
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…