Repository navigation
docs(proxy): document team member spend reset in the UI and late budget edge case - #1548
Merged
Merged
Conversation
…et edge case Add the Admin UI steps for resetting a team member's spend next to the existing curl, and spell out who can call it, the reset_to limits, and the 403 and 404 cases Add a subsection explaining that spend accrued by a member with no budget counts against a budget that is added later, with the two ways to unblock the member, and link to it from the team member budget sections
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
6 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.
Summary
Documents behaviour and UI from BerriAI/litellm#41349 and should merge after it
That PR tracks per-member spend for every team member, including members with no budget, and adds a "Reset spend" action to the Members tab of a team in the Admin UI. A side effect of tracking everyone is that a member with no budget has no budget window, so their current cycle spend keeps growing, and it counts against a budget the moment an admin adds one later. A member who spent $500 with no budget and then gets a $100 member budget is blocked on their next request
In
docs/proxy/users.md, the "Reset a team member's spend" section now has UI and API tabs. The UI tab lists the click path (Teams, open the team, Members tab, the "Reset spend" icon in the Actions column, then "Reset" in the "Reset Team Member Spend" dialog) and says when the icon is shown. The API tab keeps the existing curl and response and adds thereset_tolower bound plus the 403 (a team admin resetting their own spend) and 404 (no membership row) cases. The section also says that the reset only touches current cycle spend, that org admins can call it, that it applies on the next request on every proxy instance, and that there is no bulk versionA new subsection, "Existing spend counts against a budget added later", explains the difference between Current Cycle Spend and Total Spend, walks through the $500 / $100 example for both
team_member_budgeton/team/updateandmax_budget_in_teamon/team/member_update, and gives the two ways out: wait for thebudget_durationreset, or reset the member's spend in the UI or through the API. "Update a team member's budget" on the same page and "Team Member Budgets" indocs/proxy/self_serve.mdeach get a short note linking to it#1491 edits nearby paragraphs in the same two sections. The hunks do not overlap, so either PR can merge first
Checks
npm run lint:writingandnpm run lint:docsboth pass. The two touched pages also compile with@mdx-js/mdxplusremark-directive. I did not run the fullnpm run buildLinear ticket
Refs LIT-7030