Fix Gemini client handling improvements#283
Open
iamgautamraj wants to merge 1 commit intomicrosoft:pre-releasefrom
Open
Fix Gemini client handling improvements#283iamgautamraj wants to merge 1 commit intomicrosoft:pre-releasefrom
iamgautamraj wants to merge 1 commit intomicrosoft:pre-releasefrom
Conversation
Author
|
@microsoft-github-policy-service agree |
vyokky
approved these changes
Jan 6, 2026
Contributor
|
Hi @iamgautamraj , thanks for your contribution. We’ve made a significant update on the main branch, and the pre-release was previously out of sync. They are now aligned. Could you please resolve the conflicts and resubmit the PR? Thanks! |
6455d56 to
fbf9e9d
Compare
Author
|
Hi @vyokky , thanks for the update! I’ve resolved the conflicts and force-pushed the changes. I see this is still targeting the pre-release branch. Since you mentioned it is now aligned with main, I assume this is still the correct target. Please let me know if you would prefer I change the base branch to main instead! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I was running a workflow that makes multiple LLM calls in sequence. When I added some debug logging, I noticed that the client object ID keeps changing between calls, suggesting new clients are being created instead of reusing the cached one.
After debugging my application, I traced the issues back to
gemini.pyand made a couple of improvements:The changes improve the reliability and efficiency of the Gemini client handling.