litellm/ui/litellm-dashboard
devin-ai-integration[bot] 250205ac94
refactor(dashboard): migrate to zod 4 and openai 6 (#44345)
* refactor(dashboard): migrate to zod 4 and openai 6

Bump the dashboard to real zod 4.6.5 and openai 6.49.0 so every module
imports from bare "zod" instead of "zod/v4". Ports the ten files that
still used the zod 3 API (error params, record, passthrough, strict,
email/date validators, union discriminator codes) and adapts the
LiteAdmin tool schemas and form plumbing where openai 6 and zod 4
changed behaviour.

* style(dashboard): prettier format zod 4 schema files

* fix(dashboard): restore system one missing state message under zod 4

---------

Dependency files were restored from the line and only the openai 4.104.0 -> 6.49.0 change was applied, since zod is already on 4.6.6 here. The lock moves only openai and drops its 4.x-only transitive packages
systemOneUI schemas.ts and validatePayload.test.ts do not exist on this line, so their hunks were dropped
jev_classifier_config.ts on this line has no refine, so only the instructions optional hunk applies
build_auto_router_routing_test_request.ts keeps the line's schema with the record key and loose() changes, and its object default becomes prefault({}) because zod 4 no longer parses a default through the schema

Co-authored-by: Yujong Lee <yujong@berri.ai>
(cherry picked from commit 0c86d6bfc9)
2026-10-23 15:15:47 -07:00
..
public chore(backport): regenerate dashboard API types and adapt the picks to rc/1.105.0 2026-10-11 00:53:53 +00:00
scripts fix(ui): lint z-index utilities behind arbitrary Tailwind variants 2026-08-25 17:34:45 -07:00
src refactor(dashboard): migrate to zod 4 and openai 6 (#44345) 2026-10-23 15:15:47 -07:00
tests feat(ui): simplify auto-router setup and clarify feature limits (#42625) 2026-09-22 18:03:32 -07:00
.env.development
.env.production
.npmrc
.nvmrc
.prettierignore
.prettierrc
AGENTS.md chore: consolidate CLAUDE.md into AGENTS.md 2026-09-19 02:30:35 +00:00
build_release_ui.sh
build_ui.sh
build_ui_custom_path.sh
components.json
eslint-budgets.json fix(ui): split the KeyActivityPanel condition chains to bring the lint budget back under its ceiling (#44114) 2026-10-01 18:42:12 -07:00
eslint-suppressions.json feat(ui): usage pages consume bounded daily activity routes (#43409) 2026-10-01 17:03:09 -07:00
eslint.config.mjs refactor(dashboard): migrate to zod 4 and openai 6 (#44345) 2026-10-23 15:15:47 -07:00
knip.json
next.config.mjs fix(ui): retain compatible build and test commands 2026-09-08 15:54:13 -07:00
package-lock.json refactor(dashboard): migrate to zod 4 and openai 6 (#44345) 2026-10-23 15:15:47 -07:00
package.json refactor(dashboard): migrate to zod 4 and openai 6 (#44345) 2026-10-23 15:15:47 -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.