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

Consolidate duplicate HttpRequest files #1739

Merged
merged 1 commit into from
Jun 28, 2023

Conversation

stephentoub
Copy link
Member

Motivation and Context

Move the HttpRequest helper into common files to avoid cloning the file multiple times, the internally dedup the implemetations of the methods, and improve the content creation to avoid a temporary string from json serialization.

Contribution Checklist

And clean up implementation a bit
@stephentoub stephentoub requested a review from a team as a code owner June 28, 2023 03:23
@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 28, 2023
Copy link
Member

@dmytrostruk dmytrostruk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, verified with HuggingFace integration tests locally.

@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
Copy link
Member

Great change. Thank you!

@shawncal shawncal added this pull request to the merge queue Jun 28, 2023
Merged via the queue into microsoft:main with commit 7afbc20 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

Move the HttpRequest helper into common files to avoid cloning the file
multiple times, the internally dedup the implemetations of the methods,
and improve the content creation to avoid a temporary string from json
serialization.

### 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 😄
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 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.

4 participants