Skip to content

docs(proxy): document request_tag_mappings for baggage tag budgets - #2493

Merged
mateo-berri merged 1 commit into
mainfrom
litellm_request_tag_mappings_docs
Oct 20, 2026
Merged

mateo-berri merged 1 commit into
mainfrom
litellm_request_tag_mappings_docs

Conversation

@mateo-berri

@mateo-berri mateo-berri commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

TLDR

BerriAI/litellm#47358 added general_settings.request_tag_mappings, which maps a W3C baggage value such as entrypoint=checkout to a request tag so spend and tag budgets follow it. This adds a "Map Baggage Values to Tags" section to the tag budgets page with a config.yaml example, one curl, and the rule fields

The section also covers what the merged code does at the edges. A required rule answers 400 when the value is missing or unmapped and turns off WebSocket inference, require_budgeted_tag answers 400 when the mapped tag has no max_budget, and a budget created later with /tag/new counts only spend written after it exists. It also says which routes get mapped, that mapped tags never drive routing, and that the client still picks the value

The config settings table gets a request_tag_mappings row and a note on reject_clientside_metadata_tags, and the request tags page links to the new section. The first stable with the setting is v1.108.0, so the page says so


Note

Low Risk
Documentation-only changes with no runtime or configuration behavior in this PR.

Overview
Documents general_settings.request_tag_mappings (v1.108.0), which maps W3C baggage header values to request tags for spend tracking and tag budgets.

Adds a Map Baggage Values to Tags section on the tag budgets page with YAML/curl examples, rule fields (value/tag, tag_prefix, required, require_budgeted_tag), and edge behavior: 400/403 for required or unbudgeted mappings, WebSocket limitations, route scope, interaction with reject_clientside_metadata_tags, and Admin UI editing.

Updates the config settings reference (new table row and sample config) and links from request tags to the new section.

Reviewed by Cursor Bugbot for commit 8421d3d. Bugbot is set up for automated code reviews on this repo. Configure here.

@vercel

vercel Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
litellm Ready Ready Preview Oct 20, 2026 9:42am UTC

Request Review

@mateo-berri

Copy link
Copy Markdown
Contributor Author

bugbot run

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 8421d3d. Configure here.

@mateo-berri
mateo-berri merged commit 323b9ce into main Oct 20, 2026
7 checks passed
@mateo-berri
mateo-berri deleted the litellm_request_tag_mappings_docs branch October 20, 2026 09:45

This branch was previously deployed

1 inactive deployment
Preview — 8421d3d3 Deployed Oct 20, 2026 by vercel[bot]
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