Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenAPI fixes and improvements #1737

Merged
merged 2 commits into from
Jun 28, 2023

Conversation

SergeyMenshykh
Copy link
Member

Motivation and Context

This PR ensures that the User-Agent is consistently passed for all OpenAPI-related functionality, preventing rejections of HTTP requests by Klarna ChatGPT plugin. It also introduces a data contract for the RestApiOperation response, enabling reliable deserialization in SK consumer code.

Contribution Checklist

Sorry, something went wrong.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
…ionality to prevent ChatGPT plugins from rejecting the HTTP request if the header is not provided.

2. Provide a data contract for the RestApiOperation response to enable reliable deserialization of the response in SK consumer code.
@SergeyMenshykh SergeyMenshykh requested a review from a team as a code owner June 27, 2023 21:51
@github-actions github-actions bot added .NET Issue or Pull requests regarding .NET code kernel Issues or pull requests impacting the core kernel labels Jun 27, 2023
@SergeyMenshykh SergeyMenshykh added the PR: ready for review All feedback addressed, ready for reviews label Jun 27, 2023
@dmytrostruk dmytrostruk added the PR: ready to merge PR has been approved by all reviewers, and is ready to merge. label Jun 28, 2023
@shawncal shawncal added this pull request to the merge queue Jun 28, 2023
Merged via the queue into microsoft:main with commit 032d6e7 Jun 28, 2023
@evchaki evchaki added this to the Sprint 34 milestone Jun 30, 2023
shawncal pushed a commit to shawncal/semantic-kernel that referenced this pull request Jul 6, 2023
### Motivation and Context
This PR ensures that the User-Agent is consistently passed for all
OpenAPI-related functionality, preventing rejections of HTTP requests by
Klarna ChatGPT plugin. It also introduces a data contract for the
RestApiOperation response, enabling reliable deserialization in SK
consumer code.

### Contribution Checklist
<!-- Before submitting this PR, please make sure: -->
- [x] The code builds clean without any errors or warnings
- [x] The PR follows SK Contribution Guidelines
(https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
- [x] The code follows the .NET coding conventions
(https://learn.microsoft.com/dotnet/csharp/fundamentals/coding-style/coding-conventions)
verified with `dotnet format`
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄

Co-authored-by: Dmytro Struk <13853051+dmytrostruk@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kernel Issues or pull requests impacting the core kernel .NET Issue or Pull requests regarding .NET code PR: ready for review All feedback addressed, ready for reviews PR: ready to merge PR has been approved by all reviewers, and is ready to merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants