{{define "admin_quotas"}} Quotas · llmgw

Quotas

What each organization, team and project may use · spend over the last {{.Since}}

{{if .Error}}

{{.Error}}

{{end}} {{if .Message}}

{{.Message}}

{{end}} {{if .Rows}} {{/* The tree is the interface. A quota belongs to a branch, so the form to set one opens on that branch rather than asking somebody to name it again in a box at the bottom. */}} {{range .Rows}} {{if .Shadowed}} {{/* A value that is written here and never reached. Resolution takes the most restrictive along the chain, so without saying so the page would show a number as though it applied and the first sign would be a refusal that disagrees with the screen. */}} {{end}} {{if .Models}}{{end}} {{if .Editing}} {{end}} {{end}}
WhereRPMTPMBudgetSpentUsed
{{if eq .Indent 0}}{{.Path}}{{else}}{{.Path}}{{end}} {{.Scope}} {{if .RPM}}{{.RPM}}{{else}}—{{end}} {{if .TPM}}{{.TPM}}{{else}}—{{end}} {{if .Budget}}{{.Budget}}{{if .Period}}/{{.Period}}{{end}}{{else}}—{{end}} {{.Spend}} {{if .HasPct}}{{.Percent}}%{{else}}—{{end}} {{if .Editing}}close {{else}}{{if .HasAny}}change{{else}}set quota{{end}}{{end}}
written here, but {{.Shadowed}}
only: {{.Models}}

Quota for {{.Crumb}} — shared by everything beneath it. Whatever is set here replaces what was there; a field left blank is no limit of that kind, not a limit of zero.

{{else}}

Nothing to give a quota to yet. Make an organization on the accounts page first.

{{end}}

Limits compose downward by taking the most restrictive value, so a team cannot raise what its organization set and a project cannot raise its team's. Only an organization's own limit is bounded by nothing. Model lists intersect rather than add: a project cannot allow a model its team withheld.

Still not here, deliberately: per-key limits. A key is issued by the person who owns it and bounded by the project it belongs to, and letting an admin session reach individual keys would put every caller's throughput one click away — llmgw keys limits --scope key for that.

{{end}}