Repository navigation
llm: kimi backend sends an explicit reasoning_effort (GRAPHIFY_KIMI_EFFORT, default max) - #6
Merged
Merged
Conversation
…KIMI_EFFORT, default max) for models that support it K3 advertises valid_efforts [low, high, max]; with nothing sent the server applies its own default (high). The key is read by the existing kimi request plumbing and forwarded as reasoning_effort; env-overridable so no source edit is ever needed.
… default max; changelog Import-time env pattern, so the test reloads the module around each assertion — same convention as test_anthropic_custom_endpoint.py. Co-Authored-By: Claude Fable 5 <[email protected]>
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.
What
The
kimibackend config now carriesreasoning_effort— defaultmax, overridable viaGRAPHIFY_KIMI_EFFORT— forwarded by the existing request plumbing for Kimi models that support it.Why
Ports a local patch running on the TELB-COCKPIT box. The original patch comment:
Kimi K3 is the box's fallback extraction backend; without this the strongest effort tier is silently unreachable, and a reinstall would erase the setting.
Tests
tests/test_kimi_reasoning_effort.py— default assembles tomax, env override wins; module reloaded around each assertion per the existing import-time-env convention.🤖 Generated with Claude Code