Replies: 1 comment
-
|
Your reading is correct: the current Semantic Kernel conversion cannot represent an image that is referenced by an uploaded file ID. So The reliable options today are:
Conceptually the direct OpenAI content is: ResponseItem.CreateUserMessageItem([
ResponseContentPart.CreateInputTextPart("Describe this image"),
ResponseContentPart.CreateInputImagePart(uploadedFileId)
]);This looks like a genuine abstraction gap in Semantic Kernel rather than incorrect usage. A distinct image-file-reference content type (or an explicit image purpose on the reference) would let the SK adapter choose |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi.
Using the Responses API, currently I can upload a file to the files API and use that in a vector store if this file is an .docx for example.
But if I want to upload an image, the vector store won't work, as it's only for text docs. So I want to use as an
ImageContent()The problem is that
ImageContent()wants a URI, so "file-sadkhjasdjhas8sadjh" won't work.I don't know how to pass a file ID to make use of that file.
The API allows that:
Also,
FileReferenceContent()put a type ofinput_fileso the API assumes it's not an image and fails.A combination of both will be so good.
Allow in Responses API vision of images by FileID.
Beta Was this translation helpful? Give feedback.
All reactions