mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-30 01:08:33 +00:00
* feat(ui): add System One (Jev) playground tab Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(ui): validate System One inputs and refresh request context Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(ui): validate System One response payloads Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(ui): fall back to requested model for System One Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * refactor(ui): use useMutation and zod schemas for the System One tab, mark it Beta Replace the hand-written request and response guards with zod schemas, which also provide the types. Send requests through useMutation instead of manual loading, error and race-guard state. Unknown spec fields now pass through to the upstream model, and validation errors point at the exact offending key * feat(ui): flag the System One tab as a TypeSafe-only beta * feat(ui): highlighted JSON editor for the System One tab Line numbers, JSON syntax highlighting through the existing react-syntax-highlighter dependency, a valid or issue-count status badge, and a compact path plus message issue list replace the bare textarea and stacked alerts. Answer card type badges now sit on the header row * fix(ui): let the System One results scroll to the bottom The tab panel was viewport height but sat below the tab bar, so its bottom was cut off. On wide screens the editor and results now scroll independently, answers render above the question breakdown, and the raw response no longer nests its own scroll area * feat(ui): color the model, state and questions blocks in the System One editor Tints each top-level request block in the JSON editor and marks the matching breakdown sections with the same color, so it is clear which part of the payload feeds which panel * feat(ui): wrap long lines in the System One JSON editor Long state strings no longer need horizontal scrolling. Each line renders as its own row with its number and block color, so wrapped lines keep their line number and the caret stays aligned * fix(ui): remove horizontal scrolling from the System One tab Long unbroken text in the state, question ids, choice labels and the raw response now wraps instead of widening its box * refactor(ui): replace System One presets with one example and a reset button The tab now starts with a single product review example that uses all three question types, and Reset example restores it after editing * refactor(ui): use an issue triage request as the System One example * fix(ui): type the System One line renderer from exported props rendererProps is not exported by the react-syntax-highlighter types, which broke the dashboard build * fix(ui): address System One review feedback Highlights the score level nearest a fractional calibrated score, keeps extra noul criteria fields in the sent payload, and clears an answer when the request key changes * refactor(ui): parse System One root blocks without mutation and preview all noul criteria The root-block finder is now a tokenizer plus a pure reduce, and the question preview lists every noul criterion that will be sent * refactor(ui): group System One playground files into components and lib Drops the repeated SystemOne prefix from the inner component files and moves the pure logic (schemas, example, payload validation, root block parsing) into lib/. Tests stay colocated with their files, matching the rest of the dashboard. No behavior change * feat(ui): link the decision models discussion from the System One beta notice * feat(ui): ask for decision model feedback in the System One beta notice * feat(ui): make the decision model feedback text the discussion link --------- Co-authored-by: ryan <ryan@berri.ai> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| public | ||
| scripts | ||
| src | ||
| tests | ||
| .env.development | ||
| .env.production | ||
| .npmrc | ||
| .nvmrc | ||
| .prettierignore | ||
| .prettierrc | ||
| AGENTS.md | ||
| build_release_ui.sh | ||
| build_ui.sh | ||
| build_ui_custom_path.sh | ||
| components.json | ||
| eslint-budgets.json | ||
| eslint-suppressions.json | ||
| eslint.config.mjs | ||
| knip.json | ||
| next.config.mjs | ||
| package-lock.json | ||
| package.json | ||
| postcss.config.js | ||
| README.md | ||
| tsconfig.json | ||
| tsconfig.tsbuildinfo | ||
| vitest.config.ts | ||
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:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
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.