Skip to content

docs(proxy): document PTU shares per team and the per-team PTU ceiling - #1700

Merged
mateo-berri merged 17 commits into
mainfrom
litellm_docs_ptu_shares_per_team
Oct 15, 2026
Merged

mateo-berri merged 17 commits into
mainfrom
litellm_docs_ptu_shares_per_team

Conversation

@mateo-berri

@mateo-berri mateo-berri commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

TLDR

Documents the per-team PTU shares shipping in BerriAI/litellm#43043: model_info.ptu_shares on an Azure provisioned deployment, the per-minute ceiling each share becomes, the flat cost split by share, and ptu_hours on GET /team/daily/activity and the Team Usage page

docs/proxy/ptu_flat_cost.md gains a "Share a deployment across teams" section (the API and config.yaml shapes, the exclusivity with team_id and how a deployment one team already owns is split (delete it and register it again with the same model_info.id), the sum rule, who can call the deployment, the ceiling formula and its 429, the names and routes that count against it with wildcards included, base_model), the cost split in "How the cost is calculated", ptu_hours in "Read the cost back", ptu_shares and base_model in the field table, and three limitations. docs/proxy/dynamic_rate_limit.md gains a short section pointing at it, since the ceiling replaces a hand-converted model_tpm_limit. "Read the cost back" also says a usage row keyed by an alias, a routing group, a deployment id, or a provider model is sized like the group, and that one team's page sizes such a row by the deployment that team is served from, never one reserved for another team, while a page spanning teams uses the first reserved deployment behind the name, matching the read-path fixes in the code PR. The section also says a team holding a share cannot be removed through DELETE /organization/delete or a SCIM group delete either, that a small share writes max_tokens for an uncapped request (987 on 3 PTUs of gpt-5.4-mini, 100 on 1 PTU of gpt-5.4), what share a large max_tokens needs, and that PTU-hours count only inside a reservation's effective window

Merge after BerriAI/litellm#43043 lands so the docs never lead the code

Type

  • Documentation

Note

Low Risk
Documentation-only changes with no runtime or security impact.

Overview
Documents Azure PTU multi-team sharing (model_info.ptu_shares) and the proxy behaviors that ship with it, intended to merge after the implementation PR.

ptu_flat_cost.md is expanded with a Share a deployment across teams guide: ptu_shares vs team_id, validation and access rules (including team/org/SCIM delete guards), how flat cost splits per share, ptu_hours on /team/daily/activity and Team Usage, secret-manager override for LITELLM_ENABLE_PTU_COST_ATTRIBUTION, and base_model for ceiling sizing. A nested section explains the per-minute normalized-token ceiling (Azure sizing table, 429/400 behavior, max_tokens rewriting on small shares, routing aliases/wildcards, and what routes bypass the limit).

dynamic_rate_limit.md adds a short cross-link showing PTU shares as an alternative to hand-tuned model_tpm_limit. Limitations call out PTU-hours scope, mixed model groups, alias sizing on usage pages, and no Admin UI editor for shares yet.

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

@vercel

vercel Bot commented Sep 24, 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 14, 2026 12:49pm 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.

Stale Bugbot comment from a previous run.

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

Stale Bugbot comment from a previous run.

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

Stale Bugbot comment from a previous run.

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

Stale Bugbot comment from a previous run.

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

Stale Bugbot comment from a previous run.

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

Stale Bugbot comment from a previous run.

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

Stale Bugbot comment from a previous run.

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

Stale Bugbot comment from a previous run.

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

Stale Bugbot comment from a previous run.

@mateo-berri

Copy link
Copy Markdown
Contributor Author

@litereview code-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.

Stale Bugbot comment from a previous run.

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

Stale Bugbot comment from a previous run.

…icit max_tokens cap, large output budgets, and dated PTU-hours
@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.

Stale Bugbot comment from a previous run.

@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 8c4abab. Configure here.

@mateo-berri
mateo-berri merged commit 2abb601 into main Oct 15, 2026
7 checks passed
@mateo-berri
mateo-berri deleted the litellm_docs_ptu_shares_per_team branch October 15, 2026 18:47

This branch was successfully deployed

1 active deployment
Preview — 8c4abab4 Deployed Oct 14, 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