[PR #2352] [CLOSED] serve: preserve explicit false against configured reasoning defaults #3999

Closed
opened 2026-11-07 15:32:21 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • 5ca9692 fix(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 explicit reasoning_effort: false because 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 documents false as 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 296b59d2f73c8f04a805df29c2fa97655adace78 with low != none, then all 11 serve.test_effort_paths methods 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.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/2352 **Author:** [@Tsury](https://github.com/Tsury) **Created:** 10/14/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix-explicit-false-reasoning-default-20261014` --- ### 📝 Commits (1) - [`5ca9692`](https://github.com/Niko1221/Strata/commit/5ca9692d5d8aaee65127802616ae2598e90c2d95) fix(serve): preserve explicit false against reasoning defaults ### 📊 Changes **2 files changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `serve/server.py` (+1 -1) 📝 `serve/test_effort_paths.py` (+1 -0) </details> ### 📄 Description When a config or shared setting supplies a reasoning default, `Service.with_shared()` replaces an explicit `reasoning_effort: false` because 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 documents `false` as 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 `296b59d2f73c8f04a805df29c2fa97655adace78` with `low != none`, then all 11 `serve.test_effort_paths` methods pass after the one-line fix. Python/Jinja fixture only; no GPU inference. Neither touched Python file builds a CUDA/HIP/SYCL backend. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:32:21 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#3999
No description provided.