Skip to content

llm: kimi backend sends an explicit reasoning_effort (GRAPHIFY_KIMI_EFFORT, default max) - #6

Merged
Azeem1985 merged 3 commits into
v8from
feat/kimi-reasoning-effort
Aug 24, 2026
Merged

Azeem1985 merged 3 commits into
v8from
feat/kimi-reasoning-effort

Conversation

@Azeem1985

Copy link
Copy Markdown

What

The kimi backend config now carries reasoning_effort — default max, overridable via GRAPHIFY_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:

Reasoning effort for Kimi models that support it (K3 advertises valid_efforts ["low","high","max"] on /models). Upstream previously sent nothing, so the server default ("high" for K3) silently applied while the gemini block above has an effort setting. Env-overridable; forwarded as reasoning_effort by the existing plumbing.

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 to max, env override wins; module reloaded around each assertion per the existing import-time-env convention.

🤖 Generated with Claude Code

Azeem and others added 3 commits August 23, 2026 21:24
…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]>
@Azeem1985
Azeem1985 merged commit 2d7c393 into v8 Aug 24, 2026
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.

1 participant