mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2352] [CLOSED] serve: preserve explicit false against configured reasoning defaults #3999
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3999
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/2352
Author: @Tsury
Created: 10/14/2026
Status: ❌ Closed
Base:
main← Head:fix-explicit-false-reasoning-default-20261014📝 Commits (1)
5ca9692fix(serve): preserve explicit false against reasoning defaults📊 Changes
2 files changed (+2 additions, -1 deletions)
View changed files
📝
serve/server.py(+1 -1)📝
serve/test_effort_paths.py(+1 -0)📄 Description
When a config or shared setting supplies a reasoning default,
Service.with_shared()replaces an explicitreasoning_effort: falsebecause its absence check uses truthiness. On 0.1.44.1 with config LOW, the existing HTTP/render fixture produces LOW instead of thinking off for that request. The release already documentsfalseas off.Treat only missing, null or empty effort as absent. Add the explicit-false case to the existing request-over-config HTTP regression. Requests that omit effort still use the configured/shared default; ordinary string levels and template kwargs keep their existing precedence. No kernel, sampling, model policy or default change.
Validation: the added assertion fails on exact tag
296b59d2f73c8f04a805df29c2fa97655adace78withlow != none, then all 11serve.test_effort_pathsmethods pass after the one-line fix. Python/Jinja fixture only; no GPU inference. Neither touched Python file builds a CUDA/HIP/SYCL backend.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.