packs: ⚡️ turn off Cerebras reasoning in the plain-English rewrite - #169
Merged
Merged
Conversation
Context: Follows #165. The plain-English rewrite calls Cerebras `qwen-3.8-27b`, which reasons by default. On a 2,300-character reply it spent a median 6,300 reasoning tokens for about 520 output tokens, so even with #165's 6-second cap many rewrites timed out and showed the original. Summary: `plain_english` passes `reasoning_effort="none"` to `OpenAiEndpointBackend`, and the spawnllm pin moves to `>=0.14.0,<0.15`, the first release with that field (yasyf/spawnllm#10). Motivation: The owner chose to make `reasoning_effort` a typed field in spawnllm rather than override the backend's request planning here. Details: 20 calls through the real `plain_english.plain_english()` path, same prompt and harness, a fresh nonce per call: | | p50 | p95 | max | fell back to original | |---|---|---|---|---| | #165 (spawnllm 0.13.4, reasoning on) | 4.42s | 6.02s | 6.47s | 3 of 20 (6s cap) | | this PR (spawnllm with reasoning_effort, `"none"`) | 0.52s | 0.98s | 1.13s | 0 of 20 | The "after" row ran against yasyf/spawnllm#10 installed from its branch. After v0.14.0 was published, 12 more calls against the locked release gave 0.52s p50 and 0.74s p95, with no fallbacks. `uv lock --upgrade-package spawnllm` moves the lock from 0.13.4 to 0.14.0. `test_streamed_message_is_rewritten_once` asserts that the backend carries `reasoning_effort == "none"`. Both changelog entries move to Unreleased: #165's landed under 12.56.0, which was tagged before #165 merged. `pytest tests/test_plain_english.py tests/test_plugin_hooks.py` passes.
yasyf
force-pushed
the
plain-english-no-reasoning
branch
from
September 25, 2026 03:06
6833470 to
f1e5c14
Compare
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
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.
Context: Follows #165. The plain-English rewrite calls Cerebras
qwen-3.8-27b, which reasons by default. On a 2,300-character reply it spent a median 6,300 reasoning tokens for about 520 output tokens, so even with #165's 6-second cap many rewrites timed out and showed the original.Summary:
plain_englishpassesreasoning_effort="none"toOpenAiEndpointBackend, and the spawnllm pin moves to>=0.14.0,<0.15, the first release with that field (yasyf/spawnllm#10).Motivation: The owner chose to make
reasoning_efforta typed field in spawnllm rather than override the backend's request planning here.Details: 20 calls through the real
plain_english.plain_english()path, same prompt and harness, a fresh nonce per call:"none")The "after" row ran against yasyf/spawnllm#10 installed from its branch. After v0.14.0 was published, 12 more calls against the locked release gave 0.52s p50 and 0.74s p95, with no fallbacks.
uv lock --upgrade-package spawnllmmoves the lock from 0.13.4 to 0.14.0.test_streamed_message_is_rewritten_onceasserts that the backend carriesreasoning_effort == "none". Both changelog entries move to Unreleased: #165's landed under 12.56.0, which was tagged before #165 merged.pytest tests/test_plain_english.py tests/test_plugin_hooks.pypasses.