-
Hi Team, I can see a lot of exciting deliverables in #7126 My general question: is it possible as of now to send a file as a BinaryContent? Currently my rudimentary code throws System.NotSupportedException: 'Unsupported chat message content type 'Microsoft.SemanticKernel.BinaryContent'.' Does not matter which version
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
@ystvan - check out this sample - https://github.com/microsoft/semantic-kernel/blob/main/dotnet/samples/Concepts/Agents/OpenAIAssistant_FileManipulation.cs it looks like you are almost on the right track, but you need to use agents vs just passing over a file to a chat completion. |
Beta Was this translation helpful? Give feedback.
-
Hi @ystvan - Today we are merging support for V2 assistants into main and releasing a new package. At this point in time, I don't believe chat-completion supports the specification of uploaded files by id (https://platform.openai.com/docs/api-reference/chat/create#chat-create-messages). Images may be specified by an image "url". I believe uploading files is specific to the assistant API...which @JP-droidic correctly noted that we've been working to support V2 features. This V2 support has been available in the 1.18.0RC and 1.18.1RC packages and is being merge to main today. An updated version of the "file-manipulation" sample Evan referenced can be found here (until the merge is complete, then it will be in main): https://github.com/microsoft/semantic-kernel/blob/feature-connectors-openai/dotnet/samples/Concepts/Agents/OpenAIAssistant_FileManipulation.cs |
Beta Was this translation helpful? Give feedback.
Hi @ystvan - Today we are merging support for V2 assistants into main and releasing a new package. At this point in time, I don't believe chat-completion supports the specification of uploaded files by id (https://platform.openai.com/docs/api-reference/chat/create#chat-create-messages). Images may be specified by an image "url".
I believe uploading files is specific to the assistant API...which @JP-droidic correctly noted that we've been working to support V2 features. This V2 support has been available in the 1.18.0RC and 1.18.1RC packages and is being merge to main today.
An updated version of the "file-manipulation" sample Evan referenced can be found here (until the merge is complete,…