-
Notifications
You must be signed in to change notification settings - Fork 4.2k
.Net Fix #10964 Gemini typeof(T) schema breaks logging #10993
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
.Net Fix #10964 Gemini typeof(T) schema breaks logging #10993
Conversation
…gging doesn't fail when using typeof(T)
@microsoft-github-policy-service agree company="Claim Mosaic" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @sscowden Thanks for the first contribution!
Just one observation. Change the public
to be an internal
Looks good to me.
dotnet/src/Connectors/Connectors.Google/Core/Gemini/Models/GeminiRequest.cs
Outdated
Show resolved
Hide resolved
Hey Roger, sorry I didn't get to this in time. Thank you for completing the PR! |
…osoft#10993) Fixes microsoft#10964 Feedback welcome, wasn't really sure on how I should approach this, but opted to add a Moq logger to the existing Gemini ResponseSchema test. This required me to make `GeminiRequest.GetResponseSchemaConfig` public and add an optional ILogger parameter to `GeminiChatGenerationTests.CreateChatCompletionClient`. --------- Co-authored-by: Roger Barreto <[email protected]>
Fixes #10964
Feedback welcome, wasn't really sure on how I should approach this, but opted to add a Moq logger to the existing Gemini ResponseSchema test. This required me to make
GeminiRequest.GetResponseSchemaConfig
public and add an optional ILogger parameter toGeminiChatGenerationTests.CreateChatCompletionClient
.