Repository navigation
feat(proxy): per-model team member budgets with router fallback - #43887
Conversation
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
|
|
|
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
Merging this PR will not alter performance
|
ae5de14 to
9591116
Compare
|
@greptileai please re-review at 9591116, which addresses all four P1 findings from the previous round |
9591116 to
c2ba078
Compare
c2ba078 to
9e0c9d0
Compare
|
@greptileai please re-review at 9e0c9d0, which squashes a Prettier fix and a constant log message for the CodeQL log injection alerts |
9e0c9d0 to
0ade84d
Compare
|
@greptileai please review the rebased head 0ade84d, which also keeps agent keys off the fallback reroute so agent model grants cannot be bypassed |
0ade84d to
1b3580f
Compare
|
@greptileai please review 1b3580f, which only adds typed Protocol views in user_api_key_auth.py to clear the basedpyright reportUnknownArgumentType ceiling; behavior is unchanged |
1b3580f to
7dd6a26
Compare
|
@greptileai please review 7dd6a26, which removes the extra auth-time default budget read by using the membership's joined budget row |
Bugbot is paused — on-demand spend limit reachedBugbot uses usage-based billing for this team and has hit its on-demand spend limit. A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue. |
|
@greptileai please re-review head e3b55b7 and refresh the confidence score. In thread r4234700671 you confirmed the own-helper test double finding is stale on this revision, which was the only reason given for 4/5 |
|
@greptileai please re-anchor on ff8be00. It squashes e3b55b7 and 62c4e18 (the 5/5 you judged) into one commit with a byte-identical tree to 62c4e18, so the reviewed content is unchanged |
|
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 ff8be00. Configure here.
|
@greptileai please review c36a399, the same single commit rebased onto current main with both review threads addressed |
|
@greptileai please review head c1955bc, which adds the member budget check to rate-limit fallbacks in |
|
@greptileai please review head 6e5ee41, which limits the rate-limit backup gate to member caps and reworks the tests |
|
@greptileai please review head babe4d4, which adds the zero-cost bypass to the rate-limit backup member cap check |
|
@greptileai please review head b4d51d8, which only sanitizes the logged model name and error in the rate-limit backup gate |
|
@greptileai please review head 8382348, which resolves backup aliases before member cap checks and lets free backups skip spend caps |
|
@greptileai please review head b7d8a2e, which resolves backup aliases before member cap checks and lets free backups skip spend caps |
|
@greptileai please review head 3df96dd, where the auth-time fallback walk checks member caps and price on the model served after every alias |
|
@greptileai please re-anchor on 018fca2, the same single commit rebased onto current main with no content change |
|
@greptileai please re-anchor on 95c4356, same commit rebased onto main with a one hunk Teams.tsx conflict merged |
|
@greptileai please re-anchor on ea54c20, which types the new budget call sites so the basedpyright gate holds against main |
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
TLDR
Problem this solves:
How it solves it:
team_member_model_max_budgeton/team/newand/team/update, stored on the team's default member budgetrouter_settings.fallbacks, rechecking every budget and access rule on the fallback model/team/member_updateacceptsmodel_max_budget; Members, Edit Member gets a "Per-Model Budgets" editor that overrides the team default for that member onlyUser Flow
Before: an admin sets per-model member caps on a team, but members keep hitting the expensive model with no limit
team_member_model_max_budget: {"claude-sonnet-4-6": {"max_budget": 20, "budget_duration": "30d"}}, gets 200"model_max_budget": null, the field was droppedclaude-sonnet-4-6past the cap and still gets 200 fromclaude-sonnet-4-6After: the member is capped per model and automatically moved to the cheaper fallback, other members are untouched
x-litellm-model-group: claude-sonnet-4-6claude-haiku-4-5via the router fallbackLiteLLM Team Member: user=<id>, team=<id>, exceeded budget for model=claude-sonnet-4-6claude-sonnet-4-6gpt-4o$10 Monthly); admin sets it to $2.5 Weekly, addsclaude-sonnet-4-6$4 Monthly, Save ChangesLinear ticket
Resolves LIT-2769
Root cause
The team default member budget row already has a
model_max_budgetJSON column, butNewTeamRequest/UpdateTeamRequestnever accepted the field, auth never loaded it onto the token, and the model budget limiter had no team-member entity, so nothing was persisted, enforced or meteredHow it runs
flowchart LR A[request model=M] --> B[existing key/user/team model budget checks] B --> C{member spend on M for user:team over cap?} C -- no --> D[serve M] C -- yes --> E[walk router fallbacks for M] E --> F{candidate passes key, user, end-user, team, member budgets and key, team, project, member model access?} F -- yes --> G[rewrite body model, serve candidate] F -- none --> H[raise original 422 budget error]Spend is charged on success to the same
team_member_model_spend:<user_id>:<team_id>:<model>key used for the check.skip_budget_checksstill loads the member budget so post-call metering sees it. A membership row with its ownmodel_max_budgettakes precedence; otherwise caps come from the team default row through the same cachedteam_member_default_budget:{budget_id}lookup the existing member budget check uses, which team update evicts. Fallbacks the router picks later (provider errors) also check the member's per-model cap throughRouterFallbackBudgetCheck, so an exhausted target is skipped there tooFiles changed
litellm/proxy/_types.pyteam_member_model_max_budgetonNewTeamRequest,UpdateTeamRequestand (excluded from dumps)UserAPIKeyAuthlitellm/proxy/management_endpoints/team_endpoints.py/team/member_updatevalidates and returnsmodel_max_budgetlitellm/proxy/management_endpoints/common_utils.pymodel_max_budgetin the member budget merge-patch, JSON-serialised for Prisma, clone-on-write off a shared budget rowlitellm/proxy/auth/user_api_key_auth.py{}falls back to the team default, and a zero-cost backup skips the spend capslitellm/proxy/auth/fallback_budget.pylitellm/proxy/auth/auth_checks.pyraise_on_lookup_erroron the default member budget reader so auth can fail closedlitellm/proxy/proxy_server.pylitellm/router_utils/common_utils.pyresolve_served_modelreturns the model request preparation serves after global, key and router aliases, shared by both backup budget checkslitellm/proxy/common_request_processing.pylitellm/proxy/management_endpoints/ui_sso.pyNewTeamRequestwithmodel_validate, same validation, typed for the new fieldlitellm/proxy/hooks/model_max_budget_limiter.pyTEAM_MEMBERentity withuser:teamidentity for checks and success-time spendlitellm/proxy/litellm_pre_call_utils.pyuser_api_key_team_member_model_max_budgetinto request metadatalitellm/proxy/pass_through_endpoints/pass_through_endpoints.pylitellm/llms/anthropic/pass_through/context_management/editors/compact.pyui/litellm-dashboard/src/components/Teams.tsxui/litellm-dashboard/src/components/team/TeamInfo.tsxui/litellm-dashboard/src/components/team/EditMembership.tsx,memberFormValues.tsmodel-max-budgetmember field type renderingModelMaxBudgetEditorui/litellm-dashboard/src/components/team/TeamMemberTab.tsxui/litellm-dashboard/src/components/networking.tsxteamMemberUpdateCallsendsmodel_max_budgetonly when it changedui/litellm-dashboard/src/components/key_team_helpers/ModelMaxBudgetEditor.tsxlabelpropui/litellm-dashboard/src/lib/http/schema.d.tsPre-Submission checklist
Screenshots / Proof of Fix
Rebased head (c36a399, main as of 2026-10-10, head and no-fallback columns re-run on the final head 3df96dd with identical results)
Three proxies on local Postgres with real Anthropic calls and byte-identical request files: head with
router_settings.fallbacks: [{"claude-sonnet-4-6": ["claude-haiku-4-5"]}]on :4000, head without fallbacks on :4001, baseorigin/mainwith fallbacks on :4002. Team default caps Sonnet0.000001per 1d and Haiku5per 1dAdmin UI stills below were captured on c36a399, and
git diff c36a399320 3df96dd997 -- ui/is empty, so the dashboard served at the final head is the samehttp://localhost:4000/ui/?page=teams, open the team, Settings. Team Member Settings shows the default per-model budgets
Members tab, three members
Edit alice, Per-Model Budgets shows her Sonnet override
Edit bob, click Add, leave the row unfinished, Cancel, then reopen. The unfinished row is gone and the saved rows remain
Earlier rounds
All cells below are on 7e5058b (base
6d4fa56ac4); the core fallback cells (alice Sonnet to Haiku fallback on both keys, bob 422 when exhausted, clearing restores Sonnet) and the/v1/responsescells were re-run live on head1588f11763after the review fixes, and the clearing and tpm-only inheritance cells re-run on head2ee9fc44ad, real Anthropic calls, local Postgres, byte-identical request bodies and config across arms. Base arm: worktree of the base commit, proxy logLITELLM_FROM /home/ubuntu/work-2769/base/litellm/__init__.py. Head arm:LITELLM_FROM /home/ubuntu/repos/litellm/litellm/__init__.py. Fallback configrouter_settings.fallbacks: [{"claude-sonnet-4-6": ["claude-haiku-4-5"]}]on one proxy, the same config withoutrouter_settingson another. Team A has default member caps Sonnet0.000001per 1d and Haiku5per 1d, members alice (two keys) and bobBefore (base 6d4fa56)
team_member_model_max_budgetmodel_max_budgetAfter (7e5058b, core and
/v1/responsescells re-run on 1588f11){"claude-haiku-4-5": {"max_budget": 5, "budget_duration": "1d"}, "claude-sonnet-4-6": {"max_budget": 0.000001, "budget_duration": "1d"}}thinking_deltaeventsteam_member_model_max_budget: {}then Sonnet chat{}, 200 claude-sonnet-4-6Admin UI (dashboard dev server from the head checkout, proxied to the head proxy)
Teams, Team A, Settings: Team Member Settings shows
Default Per-Model Budget (claude-haiku-4-5): $5.0000 per 30dand(claude-sonnet-4-6): $20.0000 per 30dMembers, Edit Member on alice: Per-Model Budgets is prefilled from the team default (Haiku $5, Sonnet $20, Monthly)
Sonnet changed to $40, Save Changes: toast
Team member updated successfully, alice's budget column switches to Custom with a Use team default actionReopen alice: Sonnet $40 persisted. /team/info: alice
{"claude-haiku-4-5": {"max_budget": 5.0, "budget_duration": "30d"}, "claude-sonnet-4-6": {"max_budget": 40.0, "budget_duration": "30d"}}, bob still on the team default row with Sonnet20.0Edit Member on bob: still the team default Sonnet $20
On head 1588f11, Edit Member on alice (stored per-model caps) and change only Team Member RPM Limit to 100, Save Changes:
Team member updated successfullyand the Rate Limits column shows100 RPM, so a stored cap no longer blocks an unrelated saveOn head d67ad28, Edit Member on bob, Add Model Budget leaves an empty row, Cancel, then reopen bob: only the stored Haiku $5 and Sonnet $20 rows are shown, the unfinished row is gone
Taxonomy audit
Re-run on the rebased diff at c36a399 and the fixes at c1955bc, 6e5ee41, babe4d4, b4d51d8, b7d8a2e and 3df96dd, earlier on 7e5058b, audit findings fixed in 9490d48, bot review findings fixed in 1588f11, 65606fe, 5afbe0d, 699f817, eaa5039, b99c7e3, f6eab8b, 2459b04 and 2ee9fc4
A1,
/budget/update: it can edit the team default budget row, so it now evictsteam_member_default_budget:{budget_id}after the write (test pre-populates the key, calls the endpoint, asserts eviction; fails with the eviction removed)E8, member spend counter identity:
team_member_budget_entity_idis now{len(user_id)}:{user_id}:{team_id}so("a:b", "c")and("a", "b:c")no longer share a counter (test fails with the old format)A2/A3, multi-worker and fetch-vs-evict race: the default budget cache entry is evicted on the writing worker and in Redis; other workers and an in-flight fetch can serve the previous caps until the entry's TTL expires, the same bound the existing team and key object caches have
D2/Z7, fallback candidate checks (review round on 7e5058b): each candidate now also passes the end-user model allowlist (
can_customer_access_model), theblock_requests_for_models_without_pricingpolicy (_unpriced_models_in_request), and the model access group budget check, andmatched_model_access_groupsis recomputed for the accepted candidate so reservations and spend charge its groupsFallback targets in dict form (
{"model": "backup"}) are read bymodel; a dict carrying other request overrides is skipped for the budget reroute instead of raisingW1, fallback body rewrite: uses the existing
rewrite_request_modelhelper, so only the client-sent body plusmodelis rewritten and auth-enriched fields are not written back into the request body cacheBB, inheritance: a member edit that only changes tpm, rpm or the overall budget no longer copies the team default
model_max_budgetinto the member's private row, so later team default changes still reach that member; a member override is honoured even when the team has no default member budget/budget/updateand team update evict the cache entry and log, rather than fail, when the cache delete raises after the database write succeededDashboard: Edit Member normalizes stored
max_budget/budget_durationcaps into the editor shape, so saving an unrelated change (role, rpm) no longer fails form validationAgent keys (review round on 1588f11): the agent refusal applies only to the new team member fallback; the existing key
budget_fallbackspath behaves as on mainClone-on-write skips copying
model_max_budgetonly when the source row is the team default member budget; a nondefault row shared by several memberships keeps its caps on the copyFallback team access (review round on 5afbe0d): the member fallback candidate check now uses
can_team_access_modelpluskey_access_group_grants_model, the same check a direct request goes through, so a backup granted by a team or key access group is not skippedAn empty
model_max_budgetpatch on a member who points at the team default is a no-op instead of forking a private row, so that member keeps following later team default changes (live cell D: same budget_id as the default, and a raised default Sonnet cap reaches the member)Fallback aliases (review round on 699f817): each fallback candidate is resolved through the key or team
router_settings.model_group_aliasmap before any budget, access or pricing check and before the request is rewritten, so an alias cannot route to a model whose member cap is spent; a settings lookup failure means no fallbackCandidate errors: an unexpected error while checking one candidate (cache or DB failure, HTTPException) skips that candidate with a warning log instead of failing the request; when no candidate passes, the original member budget error is returned, so the walk stays fail closed
Review round on eaa5039: auth-time member fallback is skipped on multipart upload requests (the original budget error is returned rather than rewriting an upload body), key or team
router_settings.fallbackstake precedence over the global list when choosing candidates (matching how the request is routed), and the router-time fallback budget check resolvesmodel_group_aliastargets withroutable_model_groupbefore checking member caps. Live: team router_settings fallback served Haiku after the Sonnet cap was spent on a proxy with no global fallbacksReview round on b99c7e3: member caps on a fallback are checked under every name the call can be charged under, the candidate as written, its key or team alias target and the router's
routable_model_groupof that target, at auth time; the router-time check covers both the raw target and its routable group, so a cap stored on either the alias or the real model bindsReview round on f6eab8b:
model_max_budget: nullon a member who follows the team default is a no-op like{}(live cell D prime), and auth-time member fallback is skipped for requests that reference a provider-scoped resource (input_file_id,file_id,batch_id,training_file,fine_tuning_job_id, the same keys the router uses), so a file-backed request stays on the model group that owns the file. Two findings were answered in thread rather than changed: the router-time zero-cost bypass matches the auth-timeskip_budget_checkspath, and alias spend accounting onmodel_groupis the existing primary-path behaviorReview round on 2459b04 (Greptile 4/5, Bugbot no new issues): the multipart and provider-scoped guard tests now use a real Router and cache instead of patching our own helpers, with the same assertions
Review round on 2ee9fc4 (Greptile 4/5, Bugbot 1, Devin Review 2): the member per-model budget check is skipped on routes where
route_skips_budget_checksis true, like the other budget checks (test fails with the condition removed); team-default member caps are loaded for plainLiteLLM_TeamTableobjects as well as cached ones (direct loader test fails with the old narrowing); the Edit Member model budget editor remounts per open and per member, so an unfinished row does not survive Cancel (integration test fails without the key, live step 7 below); the full Teams form interaction moved from the unit file toTeams.integration.test.tsxand the compact-summary and loader tests use seeded state instead of patching our own helpers, with the same assertionsReview round on d67ad28 (Greptile 4/5, Bugbot no new issues): a membership or default-budget lookup error no longer fails a budget-exempt route (
/v1/models, management routes); the loader getsskip_budget_checks or route_skips_budget_checks(route=route), so a paid model route still fails closed on the same error. Covered bytest_centralized_common_checks_skips_default_member_budget_lookup_errors_on_exempt_routes(exempt leg fails with the route term removed, paid leg pins the raise). The success path is unchanged, so the live cells above still apply; the lookup-failure path is proved by the test only, not liveReview round on 67980af (Greptile 4/5, Bugbot no new issues): the team default and Edit Member per-model budget pickers now offer models granted through the team's access groups, and every proxy model when the team's model list is empty or unrestricted, matching what the server enforces (two TeamInfo integration cases, each fails with its condition removed); the existing rate-limit pickers are unchanged. The member budget loader, vector store and fallback tests now seed the real membership and default budget caches and use a real Router, with Prisma read doubles only for misses and DB errors, instead of patching
get_team_membership,get_team_member_default_budgetand the access helpers; all assertions keptReview round on 49d6c57 (Greptile 4/5 on the remaining test-double finding, Bugbot no new issues): the PR-added fallback, fallback-budget and compact summary tests now run the real
PROXY_VirtualKeyModelMaxBudgetLimiterwith spend seeded undermodel_budget_spend_cache_key, observing budget reads at the Redis edge, and the compact member-budget denial test uses a Routermock_responseinstead of patching_call_summary_model; tests that exist on main are unchangedReview round on 59ce548 (Greptile 4/5 on the same test-double finding): the PR-added default budget lookup, shared default clone and team budget persistence tests now inject failures at the Prisma
find_uniqueedge, seed the real membership and default budget cache entries, and run the realnew_budget/update_budgethelpers, asserting on the persisted Prisma budget row (serialisedmodel_max_budget,budget_duration,budget_id) instead of patched helper argumentsReview round on e3b55b7 (Greptile 4/5, then confirmed in thread r4234700671 that no own-helper test double remains): the team member budget upsert test enables
premium_userso the realupdate_budgetpath runs; Greptile scored 5/5 on 62c4e18, squashed with no tree change into the single commit ff8be00. Bugbot was triggered on e3b55b7 and replied that it is paused on the on-demand spend limit, so the last Bugbot verdict is no new issues on 49d6c57Review round on c36a399 (Greptile P1, rate-limit backups ignore member caps):
_pre_call_with_fallbackschecks each proxy rate-limit backup against the member's per-model cap before trying it, so a spent backup is skipped and the original 429 is returned when none is eligibleReview round on c1955bc (Greptile P1 throttled keys lose backups, P2 tests skip real backup preparation): the backup gate no longer calls the router's
fallback_budget_check, which also rejects key and user budgets without honoringbudget_throttle_pct. It now runs only_team_member_within_fallback_model_budget, the member cap on the backup and its routable group, and fails closed if the spend lookup errors. Key and user budgets stay decided once at auth. Three tests inTestPreCallWithFallbacksOnLocalRateLimitdrive the realcommon_processing_pre_call_logicthrough the real v3 limiter with a realPROXY_VirtualKeyModelMaxBudgetLimiterseeded inDualCache, covering a spent backup (429, backup never reaches the limiter), a backup under its cap (served), and an over-budget key with an enforcedRouterFallbackBudgetCheckon the router (backup still served). Disabling the member gate fails the first, and restoring the router predicate fails the first and third. This path is proved by tests only, since a keymodel_rpm_limitdid not produce a proxy 429 on the live rig, so the live cells above do not cover itReview round on 6e5ee41 (Greptile P1, free backups get blocked):
_team_member_within_fallback_model_budgetreturns early whenis_model_cost_zeroholds for the backup, matching the zero-cost bypass at auth and inRouterFallbackBudgetCheck.test_rate_limit_fallback_uses_free_backup_with_spent_member_model_budgetseeds a spent member cap on a zero-cost backup and asserts it is served, and it fails with the bypass removedReview round on babe4d4 (CodeQL Log Injection): the backup gate's lookup-failure warning passes the model name and exception through
sanitize_for_log, the existing CR/LF stripper inlitellm_pre_call_utils.pyReview round on b4d51d8 (Greptile P1s, aliased backups skip member caps and free budget backups get rejected): the proxy rate-limit backup gate now resolves the backup through
litellm.model_alias_map, the key'saliasesand the key/teamrouter_settings.model_group_aliasbefore the member-cap check and applies the zero-cost bypass to the resolved model, and the auth-time fallback walk skips spend caps for zero-cost backups. Regression teststest_rate_limit_fallback_skips_backup_aliased_to_model_over_member_budgetandtest_zero_cost_fallback_skips_spent_member_model_budgetfail when the alias resolution or the zero-cost bypass is removedReview round on 8382348 (Greptile P1, aliased backups bypass member caps in the auth-time walk): new
resolve_served_modelinlitellm/router_utils/common_utils.pyapplieslitellm.model_alias_map, then keyaliases, thenmodel_group_alias, the same order as request preparation. Both backup walks use it for the price and member-cap checks, while access checks and the body rewrite keep the router-resolved name the primary request is authorized on.test_fallback_aliased_to_spent_member_model_budget_is_skipped(key alias, global alias, free backup aliased to a paid model) and the helper order test fail when the served model is dropped, the key step is skipped or the order is swappedUser-defined pass-through: not changed. The member cap is stamped by
litellm_pre_call_utils.pyonly on the built-in pass-through path; the user-defined path builds metadata ininit_kwargs_for_pass_through_endpoint, which filters clientuser_api_key_*metadata and adds the member field only on its non-user-defined branchA1/A2: team update evicts
team_member_default_budget:{budget_id}locally after write and clearD2/Z7, post-rewrite checks: fallback candidate goes through key, team, project and membership model access plus every model budget before the rewrite
D2/Z7, agent keys: a key bound to an agent never reroutes to a fallback, it gets the original budget error, so agent model grants and access-group ceilings cannot be bypassed by the reroute
A1/A2, critical-path reads: caps are read through the evicted default-budget cache, not the membership's joined row, so a team update is not masked by the membership cache; overall-only overrides still inherit default caps
D4/Z2: a failed default budget or membership read fails closed unless budget checks are skipped for the request; a missing budget row still means no cap
F3 (router fallbacks): fallbacks chosen by the router after auth check the member per-model cap too
E5/X1:
0cap is enforced (first request rejected in tests), explicitnullclears to{}, missing field leaves the budget untouchedF3/O4: chat, streaming,
/v1/messages, built-in pass-through and Anthropic compact summary all carry and check the field. User-defined pass-through routes keep main's existing behavior of not carrying managed model-budget fields, since their model is an upstream name./v1/responseslive-tested (see After table)W1: the fallback rewrite updates the proxy's own parsed request body (that is the body sent downstream), no router, team or budget config dict is mutated
AA (metering): charged on success to the same
user:teamkey that is checkedH1-H6, H8-H10: pass (no docs, no new comments, no em dashes in UI copy, existing
model_max_budget Json?column, no CI changes). New suppressions each carry the gate rule and a reason (# noqa: BLE001on the two fail-closed broad catches,# rebind-okon the fallback body rewrite,# pyright: ignore[reportPrivateUsage]on the Starlette body cache,# mutable-okon the model-access list contract).Optional[dict]appears only in the team endpoint docstring, matching the neighbouring fieldsH7: prebuilt
_experimental/outnot touched, it is regenerated by the scheduled "update Next.js build artifacts" commit on main like other dashboard PRsT: mutation checks (run on 03f3981; the tests they cover are unchanged since): dropping the pass-through metadata assignment fails
test_passthrough_carries_the_per_model_budgets; making the member budget check always pass failstest_team_member_budget_is_charged_and_enforced_after_successandtest_zero_team_member_model_budget_rejects_first_request.git diff origin/main...HEAD -- tests/ | grep '^-.*assert'lists six lines: the four whole-rowstored_budget_row(mock_tx) == {...}asserts in the budget row tests are kept with the same values plus"model_max_budget": "{}", because the shared budget row writer now always serialises that column, andassert result == 42.5andassert result is Noneonly moved with their global spend tests and are present unchanged. Tests that exist on main keep every assertion 710321a: dropping the nonempty check on the member override failstest_member_model_budget_load_falls_back_when_override_has_no_model_caps[empty]; dropping the JSON serialisation fails the{}clear test intest_team_endpoints.pyType
🆕 New Feature
Caveats (if any)
Medium
max_budget, that is one extra cached read per team per cache lifetimeLow
{}, which drops the override so the member follows the team default againrouter_settings.fallbacks; with no fallbacks the request is rejected with the budget error0.00005cap reads$0.0001osv-scanandrust-testwere red on the previous head for reasons outside this diff (abracesadvisory in the dashboard lockfile and alitellm-tracesRust test); this PR touches neither the lockfile nor any RustFinal Attestation
Link to Devin session: https://app.devin.ai/sessions/5605a2cafad64798b30b7a426d76d4e6
Open in Devin Desktop: https://app.devin.ai/desktop/session/5605a2cafad64798b30b7a426d76d4e6?variant=devin
Requested by: @yassin-berriai