Repository navigation
docs(proxy): document request_tag_mappings for baggage tag budgets - #2493
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Author
|
bugbot run |
There was a problem hiding this comment.
✅ 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.
3 tasks done
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TLDR
BerriAI/litellm#47358 added
general_settings.request_tag_mappings, which maps a W3Cbaggagevalue such asentrypoint=checkoutto 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 fieldsThe section also covers what the merged code does at the edges. A
requiredrule answers 400 when the value is missing or unmapped and turns off WebSocket inference,require_budgeted_taganswers 400 when the mapped tag has nomax_budget, and a budget created later with/tag/newcounts 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 valueThe config settings table gets a
request_tag_mappingsrow and a note onreject_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 soNote
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 W3Cbaggageheader 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 withreject_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.