Skip to content

Conversation

shethaadit
Copy link
Contributor

Description

This pull request addresses issue #12633 by updating the Labels property in the GeminiPromptExecutionSettings and GeminiRequest classes to use a Dictionary<string, string> instead of a string. This change aligns the implementation with the Vertex AI API requirements, which expect labels to be sent as key-value pairs in JSON format.

Fixes #12633

@shethaadit shethaadit requested a review from a team as a code owner June 30, 2025 18:55
@markwallace-microsoft markwallace-microsoft added .NET Issue or Pull requests regarding .NET code kernel Issues or pull requests impacting the core kernel labels Jun 30, 2025
@github-actions github-actions bot changed the title Fix Labels Implementation in Vertex AI to Use Dictionary<string, string> .Net: Fix Labels Implementation in Vertex AI to Use Dictionary<string, string> Jun 30, 2025
@shethaadit
Copy link
Contributor Author

Hi @markwallace-microsoft / @rogerbarreto, could you please help reviewing this PR?

Copy link
Member

@markwallace-microsoft markwallace-microsoft left a comment

Choose a reason for hiding this comment

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

LGTM but I have not tested the changes. @rogerbarreto can you test this?

@shethaadit
Copy link
Contributor Author

LGTM but I have not tested the changes. @rogerbarreto can you test this?

Hi @rogerbarreto, could you please help?

@rogerbarreto rogerbarreto enabled auto-merge July 8, 2025 09:51
@rogerbarreto rogerbarreto added this pull request to the merge queue Jul 8, 2025
Merged via the queue into microsoft:main with commit 17f8368 Jul 8, 2025
18 checks passed
jcruzmot-te pushed a commit to thousandeyes/aia-semantic-kernel that referenced this pull request Sep 15, 2025
…, string> (microsoft#12636)

### Description
This pull request addresses issue microsoft#12633 by updating the Labels property
in the `GeminiPromptExecutionSettings` and `GeminiRequest` classes to
use a `Dictionary<string, string>` instead of a string. This change
aligns the implementation with the Vertex AI API requirements, which
expect labels to be sent as key-value pairs in JSON format.

Fixes microsoft#12633

---------

Co-authored-by: Adit Sheth <[email protected]>
Co-authored-by: Roger Barreto <[email protected]>
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.

.Net: Bug: labels are not correctly implemented in vertex ai
3 participants