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

Fixed function parameter not being used for LoadFromFile #1803

Merged
merged 2 commits into from
Jul 3, 2023
Merged

Fixed function parameter not being used for LoadFromFile #1803

merged 2 commits into from
Jul 3, 2023

Conversation

Chinouchi
Copy link
Contributor

Motivation and Context

While trying to reuse the Settings class used in the C# notebooks to load the Kernel configuration, I saw the parameter to specify a file was not properly used.

Description

Very simple changes as I just updated the code to use the function parameter instead of the Class variable Default
It is in the notebook part so no build nor tests. Notebooks are still working.

Contribution Checklist

@Chinouchi Chinouchi requested a review from a team as a code owner July 1, 2023 01:24
@github-actions github-actions bot added .NET Issue or Pull requests regarding .NET code samples labels Jul 1, 2023
@glahaye glahaye added the PR: ready to merge PR has been approved by all reviewers, and is ready to merge. label Jul 1, 2023
@shawncal shawncal enabled auto-merge July 3, 2023 16:14
@shawncal shawncal added this pull request to the merge queue Jul 3, 2023
Merged via the queue into microsoft:main with commit bb79d41 Jul 3, 2023
shawncal added a commit to shawncal/semantic-kernel that referenced this pull request Jul 6, 2023
)

### Motivation and Context
While trying to reuse the Settings class used in the C# notebooks to
load the Kernel configuration, I saw the parameter to specify a file was
not properly used.


### Description
Very simple changes as I just updated the code to use the function
parameter instead of the Class variable Default
It is in the notebook part so no build nor tests. Notebooks are still
working.

### 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: Shawn Callegari <36091529+shawncal@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
.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