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

.Net: Gemini - Removed limitation when gemini throws exception if invalid response (BREAKING CHANGE) #8584

Merged
merged 6 commits into from
Sep 27, 2024

Conversation

Krzysztof318
Copy link
Contributor

Motivation and Context

Sometimes Gemini returns just empty json (or only prefix) without content and metadata.
Currently connector throws exception in such cases, but users complain about that behavior so I decided to not throw any exception and return an empty chat message.

Description

BREAKING CHANGE

Instead of throwing exceptions when there is nothing in response from the server, the connector simply ignores it by returning an empty chat message.

Because gemini connector is still alpha I haven't introduced a switch to disable this change.

@RogerBarreto

Contribution Checklist

@Krzysztof318 Krzysztof318 requested a review from a team as a code owner September 6, 2024 07:19
@markwallace-microsoft markwallace-microsoft added .NET Issue or Pull requests regarding .NET code kernel Issues or pull requests impacting the core kernel labels Sep 6, 2024
@github-actions github-actions bot changed the title Gemini - Removed limitation when gemini throws exception if invalid response (BREAKING CHANGE) .Net: Gemini - Removed limitation when gemini throws exception if invalid response (BREAKING CHANGE) Sep 6, 2024
@RogerBarreto RogerBarreto self-assigned this Sep 6, 2024
@RogerBarreto RogerBarreto added this pull request to the merge queue Sep 27, 2024
Merged via the queue into microsoft:main with commit 815b051 Sep 27, 2024
15 checks passed
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants