Skip to content

docs(proxy): cover config.yaml on the PTU flat cost page - #965

Merged
yucheng-berri merged 1 commit into
mainfrom
litellm_ptu_config_yaml_docs
Aug 20, 2026
Merged

yucheng-berri merged 1 commit into
mainfrom
litellm_ptu_config_yaml_docs

Conversation

@yucheng-berri

@yucheng-berri yucheng-berri commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

Corrects the PTU page, which still tells operators that a deployment declared in config.yaml is not covered. That shipped in BerriAI/litellm#37556 and BerriAI/litellm#37571, so the statement is now false and points people away from a path that works

Three changes on docs/proxy/ptu_flat_cost.md:

The Limitations section no longer lists config.yaml. Only the legacy POST /model/update is genuinely uncovered. The Python Router on its own is called out separately, since it zeroes per-token pricing at registration but has nothing scheduling the daily job

Configure a deployment gains the YAML form alongside the existing POST /model/new example, plus the two ways a declaration silently accrues nothing: no team_id, and an unpinned model_info.id. The id is derived from the model name and the resolved litellm_params, so rotating a credential mints a new identity and the reservation is charged again under it. Verified by building the same deployment twice with different keys: derived ids 0ba149287615 and d5306a5a2275, and identical when model_info.id is set

How the cost is calculated gains a line on the catch-up pass, which prices elapsed days back to ptu_effective_from up to 91 days, so a first run after enabling the feature is not a surprise

Verified live on litellm_internal_staging at d7e4b1bdd0 against real Postgres and real provider traffic: a config-only deployment accrued $120 a day for three days, its request logged at $0 per token, and a second run left the total at $360

npm run build passes. The one broken anchor it reports is pre-existing on a release-notes page and unrelated


Open in Devin Review

A deployment declared in config.yaml now accrues flat cost, so the page no
longer lists that path as uncovered. Adds the YAML example, the catch-up
window, and the two things that silently produce no charge: a missing
team_id, and an unpinned model_info.id that rehashes when a credential
rotates.
@vercel

vercel Bot commented Aug 20, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
litellm Ready Ready Preview Aug 20, 2026 6:41pm

Request Review

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

@yucheng-berri
yucheng-berri enabled auto-merge (squash) August 20, 2026 18:38
@yucheng-berri
yucheng-berri merged commit f2e3fb3 into main Aug 20, 2026
3 checks passed
@yucheng-berri
yucheng-berri deleted the litellm_ptu_config_yaml_docs branch August 20, 2026 18:41

This branch was previously deployed

1 inactive deployment
Preview — 84e8c48f Deployed Aug 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