Repository navigation
feat(models): register Grok 4.3 for reasoning effort - #2890
Closed
IsmaelMartinez wants to merge 2 commits into
Closed
IsmaelMartinez wants to merge 2 commits into
IsmaelMartinez wants to merge 2 commits into
Conversation
Adds xai/grok-4.3 and grok-4.3-latest to the reasoning-effort registry and MAX_TOKENS, so a configured effort is clamped rather than dropped. Split out of The-PR-Agent#2530. Co-authored-by: Kyzcreig <Kyzcreig@users.noreply.github.com>
Collaborator
Author
|
/agentic_review |
1 similar comment
Collaborator
Author
|
/agentic_review |
Contributor
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require review
Tip of the day💡 Did you know, you can ask Qodo to dismiss a finding you disagree with, with your reason on record Previous reviewsReview updated until commit 2a8bdcf Results up to commit N/ASorry, something went wrongWe weren't able to complete the code review on our side. Please try again manually by commenting /agentic_review on this PR.
|
Drop the two MAX_TOKENS rows: LiteLLM's bundled cost map now carries xai/grok-4.3 at 1M, and main only pins models absent from it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LpThzLDt7pgLathoucBkcL
Contributor
|
Code review by qodo was updated up to the latest commit 2a8bdcf |
Collaborator
Author
|
Closing in favour of a community pick-up: main needs an approving review from a second maintainer and I cannot approve my own PR, so this has sat green since 30 August. The change and its tests stay on |
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.
Follow-up promised on #2530, which is now closed in favour of the registry route. Credit to @Kyzcreig, whose PR found the gap and who called the scope honestly.
xai/grok-4.3andgrok-4.3-latestsupportreasoning_efforton the pinned litellm 1.98.0 but are in neitherSUPPORT_REASONING_EFFORT_MODELSnorGROK_REASONING_EFFORT_LEVELS, so a configured effort is forwarded unclamped.MAX_TOKENSneeds no row: LiteLLM's bundled cost map already carries both at 1M, and since #3220 main only pins models absent from it.Scope is narrower than I said on that thread, deliberately. I had promised the
grok-4.20ids too, and they are not safe to add here:xai/grok-4.20-multi-agentis absent from litellm 1.98.0's bundled cost map and present only in the map litellm fetches at import, soget_supported_openai_paramsreportsreasoning_effortsupported with a network and unsupported without one. Registering it would make our behaviour depend on whether the process reached the network at start-up.-reasoningand-non-reasoningids. A family-level add would grantreasoning_effortto models that explicitly do not do reasoning.Levels mirror 4.5 rather than 4.6:
xhighis granted only where it is published, and I have no source putting it on 4.3.Verified by running: 72 pass in
test_litellm_reasoning_effort.py, and reverting onlypr_agent/algo/__init__.pyto main with the new rows kept turns all five red with real assertion failures. Full unit suite 2701 passed, which is main's 2696 plus these five.uvx ruff checkclean.