Repository navigation
docs(proxy): cover config.yaml on the PTU flat cost page - #965
Merged
Merged
Conversation
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.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Corrects the PTU page, which still tells operators that a deployment declared in
config.yamlis 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 worksThree changes on
docs/proxy/ptu_flat_cost.md:The Limitations section no longer lists
config.yaml. Only the legacyPOST /model/updateis genuinely uncovered. The PythonRouteron its own is called out separately, since it zeroes per-token pricing at registration but has nothing scheduling the daily jobConfigure a deployment gains the YAML form alongside the existing
POST /model/newexample, plus the two ways a declaration silently accrues nothing: noteam_id, and an unpinnedmodel_info.id. The id is derived from the model name and the resolvedlitellm_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 ids0ba149287615andd5306a5a2275, and identical whenmodel_info.idis setHow the cost is calculated gains a line on the catch-up pass, which prices elapsed days back to
ptu_effective_fromup to 91 days, so a first run after enabling the feature is not a surpriseVerified live on
litellm_internal_stagingatd7e4b1bdd0against 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 $360npm run buildpasses. The one broken anchor it reports is pre-existing on a release-notes page and unrelated