Skip to content

Describing the labels field use in the Vertex AI - #14448

Merged
1 commit merged into
BerriAI:mainfrom
vvidovic:propagate_metadata_to_vertexai_labels_docs
Sep 17, 2025
Merged

Describing the labels field use in the Vertex AI#14448
1 commit merged into
BerriAI:mainfrom
vvidovic:propagate_metadata_to_vertexai_labels_docs

Conversation

@vvidovic

Copy link
Copy Markdown
Contributor

Title

Describing optional labels field use by the Vertex AI

Relevant issues

Related to the Optional labels field in Vertex AI request #9175 PR,
as suggested by @krrishdholakia .

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have Added testing in the tests/litellm/ directory, Adding at least 1 test is a hard requirement - see details
  • I have added a screenshot of my new test passing locally
  • My PR passes all unit tests on make test-unit
  • My PR's scope is as isolated as possible, it only solves 1 specific problem

Type

🆕 New Feature
📖 Documentation

Changes

@vercel

vercel Bot commented Sep 11, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
litellm Ready Ready Preview Comment Sep 11, 2025 1:35pm

@ghost
ghost merged commit ef14270 into BerriAI:main Sep 17, 2025
4 of 6 checks passed
@ghost

ghost commented Sep 17, 2025

Copy link
Copy Markdown

Thank you @vvidovic

miguelangelmorenochacon added a commit to CartoDB/litellm that referenced this pull request Oct 28, 2025
- Add LlmProviders import for provider filtering
- Add metadata-to-labels conversion for OpenAI-style metadata
- Add provider-aware filtering to exclude labels from Google GenAI/AI Studio
- Update tests to verify correct behavior:
  * Labels are included for Vertex AI endpoints
  * Labels are excluded for Google GenAI endpoints
  * Metadata is converted to labels only for Vertex AI
- Remove extra_body handling (not in upstream implementation)

This aligns with the upstream BerriAI/litellm implementation that was
merged through PRs BerriAI#9175, BerriAI#14563, and BerriAI#14448.

Fixes BerriAI#13692

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
fzowl pushed a commit to fzowl/litellm that referenced this pull request Jun 24, 2026
…vertexai_labels_docs

Describing the `labels` field use in the Vertex AI
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant