litellm/ui/litellm-dashboard
Tin Chi Lo 9b0ffd564c fix(auto-router): advertise the context window an auto-router can serve
An auto-router deployment is a marker whose litellm_params.model is absent from
the cost map, so every source the model-info paths consult answers nothing and
the router advertises no context window at all. Clients that budget against the
advertised window then overflow and take an upstream context_length_exceeded 400
that no fallback catches, since the fallback map is keyed on model groups rather
than on the router.

Derive it from the tier model groups instead. Widest across the groups, because
context-window escalation moves a prompt off a tier that cannot hold it onto one
that can before dispatch, so the wide end is what the router serves; smallest
within each group, because the core router picks a deployment inside a group with
no such fit check. A group whose window is unresolvable is never escalated onto,
so it cannot raise the maximum and its presence makes the answer a guess: report
nothing. An operator-set model_info.max_input_tokens still wins everywhere.

Covers both model-info paths: get_model_listing_info for /v1/models, and
get_litellm_model_info for /model/info, /v1/model/info and /v2/model/info.
2026-09-10 21:30:09 -07:00
..
public feat(pointfive): add pointfive to the dashboard logging integrations 2026-09-10 14:02:35 +03:00
scripts fix(ui): lint z-index utilities behind arbitrary Tailwind variants 2026-08-25 17:34:45 -07:00
src fix(auto-router): advertise the context window an auto-router can serve 2026-09-10 21:30:09 -07:00
tests test(ui): stub the Virtual Keys dashboard in the expired-token page test 2026-09-05 17:57:38 -07:00
.env.development
.env.production
.npmrc
.nvmrc
.prettierignore
.prettierrc
build_release_ui.sh
build_ui.sh
build_ui_custom_path.sh
CLAUDE.md refactor(ui): type search tool params from the generated schema (#38633) 2026-08-28 10:03:35 -07:00
components.json
eslint-budgets.json refactor(ui): render the Virtual Keys page without the legacy user dashboard 2026-09-05 17:49:29 -07:00
eslint-suppressions.json fix(router): redact cookies and preserve legacy classifier logs 2026-09-10 13:12:04 -07:00
eslint.config.mjs test(ui): budget DOM-structure assertions in dashboard tests 2026-09-01 00:13:05 -07:00
knip.json fix(ui): register type-test files as knip entry points 2026-08-10 15:42:09 -07:00
next.config.mjs fix(ui): retain compatible build and test commands 2026-09-08 15:54:13 -07:00
package-lock.json chore(ui): bump smol-toml to fix GHSA-7w5x-hrqm-74c2 osv-scan failure 2026-09-10 00:46:54 +00:00
package.json fix(ui): align SDK mocks and remaining dependency patches 2026-09-08 16:03:34 -07:00
postcss.config.js
README.md
tsconfig.json
tsconfig.tsbuildinfo fix(auto_router): clear the non-reasoning tier when the classifier changes 2026-09-08 12:30:42 -07:00
vitest.config.ts test(ui): split the vitest suite into unit, component, integration and type projects (#37488) 2026-08-19 20:40:14 +00:00

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Inter, a custom Google Font.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.