Skip to content

.Net: Fix Labels Implementation in Vertex AI to Use Dictionary<string, string> #12636

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

Merged
merged 14 commits into from
Jul 8, 2025

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
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