Skip to content

chore(ui): regenerate schema.d.ts for the complexity router classifier descriptions - #40667

Closed
devin-ai-integration[bot] wants to merge 1 commit into
litellm_internal_stagingfrom
litellm_regen_schema_dts_classifier
Closed

devin-ai-integration[bot] wants to merge 1 commit into
litellm_internal_stagingfrom
litellm_regen_schema_dts_classifier

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

TLDR

Problem this solves:

  • fix(auto-router): omit Claude Code system text from classifier #40655 reworded two complexity router field descriptions but did not regenerate schema.d.ts
  • The sync check skipped on that PR because it touched no litellm/proxy path
  • Every PR that touches proxy or types code now fails the required Verify schema.d.ts matches the proxy OpenAPI spec check

How it solves it:

  • Runs npm run gen:api against the staging tip and commits the two changed @description lines

User Flow

Before: a contributor opens any PR touching litellm/proxy/ and a required check fails on code they did not touch

  1. They push a branch changing a proxy module and open a PR against litellm_internal_staging
  2. Verify schema.d.ts matches the proxy OpenAPI spec fails with "Generated API types are out of sync with the proxy OpenAPI spec"
  3. The reported diff only touches the classifier_context_* descriptions of the complexity router, which their PR never changed

After: the same PR passes the check

  1. They push the same branch and open the same PR
  2. Verify schema.d.ts matches the proxy OpenAPI spec passes because the committed schema.d.ts already matches the spec on staging

Relevant issues

Follow-up to #40655. Unblocks #38241, whose check reports exactly this diff

Linear ticket

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have added meaningful tests (not applicable: generated file only, the existing CI check is the test)
  • The handful of test files covering my change pass locally, e.g. uv run pytest tests/test_litellm/<your_test_file>.py -v. Leave the suites (make test-unit-*, make test-unit) to CI: it finishes in ~15 minutes where a laptop takes an hour or more
  • My PR passes all required CI/CD checks (e.g., lint, schema.d.ts sync check, etc.)
  • My PR's scope is as isolated as possible; it only solves 1 specific problem
  • I have received a Greptile Confidence Score of at least 4/5 before requesting a maintainer review (Greptile reviews automatically once the PR is opened; only comment @greptileai to re-request a review after pushing changes)

Delays in PR merge?

If you're seeing a delay in your PR being merged, ping the LiteLLM Team on Slack (#pr-review).

Screenshots / Proof of Fix

Before (7419a53, staging tip)

Regenerate types from the live spec

$ cd ui/litellm-dashboard && LITELLM_PYTHON=.venv/bin/python npm run gen:api && git -C ../.. diff --stat
 ui/litellm-dashboard/src/lib/http/schema.d.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

The two changed lines are the classifier_context_max_chars and classifier_context_turns descriptions. This is the same diff CI printed on #38241 (job 103124728177)

After (b18c968)

Regenerate types from the live spec

$ cd ui/litellm-dashboard && LITELLM_PYTHON=.venv/bin/python npm run gen:api && git -C ../.. diff --stat

No output: schema.d.ts matches the spec

Behavior changes

None. Generated dashboard type descriptions only

Backward compatibility

Not applicable

Link to Devin session: https://app.devin.ai/sessions/ef78f05d83264d3f82b348e7cf32c165
Open in Devin Desktop: https://app.devin.ai/desktop/session/ef78f05d83264d3f82b348e7cf32c165?variant=devin
Requested by: @yucheng-berri

…r descriptions

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@greptile-apps

greptile-apps Bot commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

Regenerates the dashboard API schema declarations so the complexity router classifier descriptions match the proxy OpenAPI specification

  • Documents that Claude Code system text is excluded from classifier requests
  • Clarifies that routed completions still receive the original system text
  • Changes generated documentation only, without altering types or runtime behavior

Confidence Score: 5/5

The PR appears safe to merge because the generated declarations match the proxy schema and introduce no behavioral or type changes

The two documentation updates align with the authoritative field descriptions and the implemented Claude Code classifier behavior, with no remaining actionable findings

Important Files Changed

Filename Overview
ui/litellm-dashboard/src/lib/http/schema.d.ts Updates two generated complexity-router field descriptions to match the authoritative proxy schema

Reviews (1): Last reviewed commit: "chore(ui): regenerate schema.d.ts for th..." | Re-trigger Greptile

@mateo-berri

Copy link
Copy Markdown
Contributor

The same schema.d.ts regeneration already landed on the base with #40624, so this duplicate has nothing left to merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants