send MultiModal chat messages #347
Unanswered
FlyWieEinAirplane
asked this question in
Q&A
Replies: 2 comments 1 reply
-
I just found #175 which is asking for file upload which is similar. |
Beta Was this translation helpful? Give feedback.
1 reply
-
So I have a working version now. I removed all the manual http calls and focussed more on the ChatBox and how to paste the file in there. Works 10/10 times :) This generally works for files. I am generating the image/blob in memory but it could be adapted to take a file from file system or wherever afaict.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So I would like to implement something that is capable of sending an image and text in one message to ChatGPT.
I had a look at what ChatGPT is doing under the hood - it is uploading the image and then having a pointer to the image inside the /conversation message. Also some values in the request are "multimodal" instead of "text". Not sure if it was necessary but I implemented the upload of the image but now I am sort of stuck sending the message with the file pointer.
Does anyone have an idea on how to enable multimodality with an event or similar so that when sending the message via chagpt.js, it is going to pick up on the file that was uploaded and then send both in one message?
Any input is welcome :)
Beta Was this translation helpful? Give feedback.
All reactions