Repository navigation
docs: document the Jev complexity router classifier - #1525
Merged
Merged
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
7 tasks done
Contributor
|
bugbot run |
1 task done
…y_classifier_docs
Contributor
|
bugbot run |
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
|
bugbot run |
Contributor
|
bugbot run |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 5c74859. Configure here.
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a "Jev classifier (TypeSafe AI)" section to
docs/auto_router/setup.mdfor theclassifier_type: jevshipped by BerriAI/litellm#41615. It covers thejev_classifier_configfields (model,api_keywith theTYPESAFE_API_KEYfallback,api_basewith theTYPESAFE_API_BASEfallback,timeout_ms,instructions, the circuit breaker settings), the rule thatapi_baseneeds an explicitapi_keyso the proxy's TypeSafe key is only sent to TypeSafe's host, that team members cannot set either through the management API, how tier labels become the choice criteria, theclassifier_probabilities,classifier_confidence,classifier_modelandclassifier_costfields on the routing decision, and that failures fall back the same way the LLM classifier does. Links to the pass-through page from #1524Resolves LIT-7975
User Flow
Before: an operator setting up the complexity router finds no way to pick Jev as the classifier
jevorTypeSafeand get no match, so they do not learn thatclassifier_type: jevexists or whichjev_classifier_configfields it takesAfter: the page walks them through the Jev classifier
classifier_type: jevblock with everyjev_classifier_configfield and its default, theTYPESAFE_API_KEYandTYPESAFE_API_BASEfallbacks, and the rule thatapi_baseneeds an explicitapi_keycause: jev_classifier,classifier_model,classifier_probabilities,classifier_confidence,classifier_cost) and links to the pass-through page for direct Jev callsScreenshots / Proof of Fix
Before (docs main, the live site)
The page's classifier section ends after the LLM classifier, with no Jev entry
After (0795383, local docusaurus build of this branch, with 5c74859 on top: a one-sentence wording change inside the same section that cannot change what the screenshots show; the Vercel preview is login-protected)
npm run startfrom this branch serves the page with the "Jev classifier (TypeSafe AI)" section: the config block, the credential rules, the spend-log fields, the fallback behavior, and the link to the pass-through pageDependents checked: no sidebar change (only
docs/auto_router/setup.mdmoves, and thestructure,writing-style, and Vercel checks are green at the tip), the/docs/pass_through/typesafelink target is on docs main since #1524 merged, and litellm's env-var docs check already passes forTYPESAFE_API_KEYandTYPESAFE_API_BASEthrough that pageCaveats
Low
api_key: nullandapi_base: null; the prose right under it explains the fallbacks, so a reader copying the block as is gets the environment-key behaviorLink to Devin session: https://app.devin.ai/sessions/b8ce9e101c644969abb9bcc9dfa2c333
Open in Devin Desktop: https://app.devin.ai/desktop/session/b8ce9e101c644969abb9bcc9dfa2c333?variant=devin
Requested by: @mateo-berri
Note
Low Risk
Documentation-only change with no runtime or security behavior impact.
Overview
Adds a Jev classifier (TypeSafe AI) section to the Auto Router setup guide, documenting
classifier_type: jevalongside the existing heuristic and LLM classifier notes.The new section includes a full
jev_classifier_configexample, env fallbacks (TYPESAFE_API_KEY,TYPESAFE_API_BASE), the rule that customapi_baserequires an explicitapi_key, management-API restrictions on credentials, spend-log fields (jev_classifier, probabilities, confidence, cost), LLM-classifier-style fallbacks, and compatibility withtier_definitions/enable_non_reasoning_tier. It links to the TypeSafe pass-through docs.Reviewed by Cursor Bugbot for commit 5c74859. Bugbot is set up for automated code reviews on this repo. Configure here.