microsoft / semantic-kernel

Integrate cutting-edge LLM technology quickly and easily into your apps
https://aka.ms/semantic-kernel
MIT License
21.41k stars 3.15k forks source link

.Net: Add Support for File types in Open API Connector #8850

Open markwallace-microsoft opened 5 days ago

markwallace-microsoft commented 5 days ago

Discussed in https://github.com/microsoft/semantic-kernel/discussions/8834

Originally posted by **neel015** September 17, 2024 Hello SK team! We have been using the package `Microsoft.SemanticKernel.Plugins.OpenApi` , it works well with API requests accepting JSON. However, we have an API which accepts file, for that it is not working. While taking a look at the [repo](https://github.com/microsoft/semantic-kernel/blob/9529652d5d36903170660f02228744220e72f466/dotnet/src/Functions/Functions.OpenApi/OpenApi/OpenApiDocumentParser.cs#L68) we can see that only `application/json` and `text/plain` are supported. It would be nice to support file types in API requests.
Arup-Chauhan commented 2 days ago

Hi @markwallace-microsoft @evchaki , if no one is working on this issue.

I would like to collaborate with my peer @rahulmansharamani14 to give this a shot. I assume co-authored PRs should be fine. We have our grad sem underway so sharing work would be nice.

Looking forward to hear back :D