Describe the bug
It appears that SK currently removes any ImageContent in a user message before it's sent to OpenAI. The offending code seems to be this ToResponseItem call. The implementation of this method only retains the main chat string and ignores all items.
Pseudocode:
ChatMessageContent userMessage = new ChatMessageContent(AuthorRole.User, "describe the image");
userMessage.Items.Add(new ImageContent(imageUri));
await foreach (AgentResponseItem<ChatMessageContent> response in agent.InvokeAsync(userMessage))
{
// ...
}
Platform
- Language: C#
- Source: NuGet package version 1.61.0
- AI model: o3-pro
Describe the bug
It appears that SK currently removes any
ImageContentin a user message before it's sent to OpenAI. The offending code seems to be thisToResponseItemcall. The implementation of this method only retains the main chat string and ignores all items.Pseudocode:
Platform