feat(litellm): improve reasoning model support and configuration UX#7287
Open
balcsida wants to merge 32 commits intoblock:mainfrom
Open
feat(litellm): improve reasoning model support and configuration UX#7287balcsida wants to merge 32 commits intoblock:mainfrom
balcsida wants to merge 32 commits intoblock:mainfrom
Conversation
dfb469d to
e1678d5
Compare
… info Query LiteLLM proxy /model/info for supports_reasoning capability instead of relying on OpenAI model-name heuristics that produce false positives for user-defined aliases (e.g. 'o3-custom' pointing to a non-reasoning model). Cache model capabilities per session via OnceCell to avoid repeated proxy calls. Fixes block#4221 Signed-off-by: Dávid Balatoni <balcsida@gmail.com>
Signed-off-by: Dávid Balatoni <balcsida@gmail.com>
Signed-off-by: Dávid Balatoni <balcsida@gmail.com>
…ing_params Signed-off-by: Dávid Balatoni <balcsida@gmail.com>
…ntrol Signed-off-by: Dávid Balatoni <balcsida@gmail.com>
Signed-off-by: Dávid Balatoni <balcsida@gmail.com>
Signed-off-by: Dávid Balatoni <balcsida@gmail.com>
Signed-off-by: Dávid Balatoni <balcsida@gmail.com>
Signed-off-by: Dávid Balatoni <balcsida@gmail.com>
… to Provider Signed-off-by: Dávid Balatoni <balcsida@gmail.com>
Signed-off-by: Dávid Balatoni <balcsida@gmail.com>
Signed-off-by: Dávid Balatoni <balcsida@gmail.com>
Signed-off-by: Dávid Balatoni <balcsida@gmail.com>
Signed-off-by: Dávid Balatoni <balcsida@gmail.com>
Signed-off-by: Dávid Balatoni <balcsida@gmail.com>
Signed-off-by: Dávid Balatoni <balcsida@gmail.com>
Signed-off-by: Dávid Balatoni <balcsida@gmail.com>
Signed-off-by: Dávid Balatoni <balcsida@gmail.com>
Signed-off-by: Dávid Balatoni <balcsida@gmail.com>
Signed-off-by: Dávid Balatoni <balcsida@gmail.com>
Signed-off-by: Dávid Balatoni <balcsida@gmail.com>
Signed-off-by: Dávid Balatoni <balcsida@gmail.com>
Signed-off-by: Dávid Balatoni <balcsida@gmail.com>
Signed-off-by: Dávid Balatoni <balcsida@gmail.com>
Signed-off-by: Dávid Balatoni <balcsida@gmail.com>
…names Signed-off-by: Dávid Balatoni <balcsida@gmail.com>
Signed-off-by: Dávid Balatoni <balcsida@gmail.com>
Signed-off-by: Dávid Balatoni <balcsida@gmail.com>
e1678d5 to
cf6298d
Compare
…d name Signed-off-by: Dávid Balatoni <balcsida@gmail.com>
Signed-off-by: Dávid Balatoni <balcsida@gmail.com>
Signed-off-by: Dávid Balatoni <balcsida@gmail.com>
Signed-off-by: Dávid Balatoni <balcsida@gmail.com>
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
Comprehensive improvements to the LiteLLM provider for better reasoning model support, variant-based reasoning effort control, and enriched model selection UX across CLI and desktop app.
Changes across 4 phases:
Phase 1: Reasoning parameter handling
reasoning_effort,thinking) using proxy model capabilitiesPhase 2: Variant (reasoning effort) support
variantfield toModelConfigfor reasoning effort control (low/medium/high/max)--variantflag and/variantslash commandreasoning_effortfor reasoning-capable modelsPhase 3: Enriched model info from proxy
/model/infoendpointsupports_reasoningtoModelInfostructPhase 4: Configuration UX improvements
/config/providers/{name}/model-infoserver endpoint returning enrichedModelInfo[]variantfield flows throughUpdateProviderRequesttoModelConfigType of Change
AI Assistance
Testing
capabilities_to_model_info()includingsupports_reasoningfield and sort orderopenai::create_request+strip_reasoning_paramsinteractionRelated Issues
Relates to #4221
Screenshots/Demos (for UX changes)
Desktop model selector now shows reasoning badges and pricing hints in the dropdown, with a "Reasoning Effort" selector appearing when a reasoning model is selected.