Hi,
-
Define a function that returns a prompt and a file ID (the ID of the image), I have to make it return a file ID because I can’t pass a URL with the message to the thread, I only can pass file IDs.
-
make an ID for the image with a “purpose” as “assistant”.
-
add a message with the ID of the image to a thread using a body like this:
"role": "user",
"content": "What in this image",
"file_ids": [“file-YN31uCRnUkpM8AsUqJRzlR30”]
-
Checking the run will return the prompt + the file ID.
-
make a URL for the image.
-
pass the prompt+ URL to a vision model.
etc.
Right?