Repository navigation
Conversation
SanHsien
referenced
this pull request
in SanHsien/commerce-agents
Sep 11, 2026
- #29:demo hosts 的 sessions 可由部署方注入自己的 SessionStore,預設仍是記憶體型。 - #12:demo host 缺憑證時只印一行警告,不再每個 request 噴完整 traceback。 - #11:thinking_effort 為 None 時省略 thinking 欄位而非送 disabled(模型一律思考時 disabled 會 400),並訂正 config.py 的 Models 區塊註解——None 是「不指定、交由模型 預設」,省略欄位在 Fable 5/5.1、Opus 5、Sonnet 5 上會開啟 adaptive 思考,不是關閉。 docs/DIVERGENCE.md 新增 8 列登記這批上游持有檔案的分岔,tests/test_fork_divergence.py 釘死集合同步更新。 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
SanHsien
referenced
this pull request
in SanHsien/commerce-agents
Sep 11, 2026
C 批三筆判決欄改為「已採納(f814ef9)」,並補上移植方式、#11 的語意變更理由與訂正 範圍(config.py 註解 grep 核對結果)、驗證輸出摘要。 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
`thinking_request_fields` sent `{"thinking": {"type": "disabled"}}` for
`thinking_effort=None`. Models that always think reject an explicit `disabled`
with a 400 (Fable 5.x; Opus 5 at the highest efforts), so a config with no
effort could not run on them at all. Omitting the field means the model's own
default, which is what None was meant to say.
vishkaty
force-pushed
the
pr/config-omit-thinking-when-none
branch
from
September 18, 2026 13:15
0d599b2 to
c6c681f
Compare
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.
thinking_request_fieldssent{"thinking": {"type": "disabled"}}forthinking_effort=None. Models that always think reject an explicitdisabledwith a 400 (Claude Fable 5 and 5.1; Claude Opus 5 at effort
xhighormax), soa config with no effort could not run on them at all. Omitting the field means the
model's own default, which is what None was meant to say.
Reference: the per-model table and the
"thinking.type.disabled" is not supportedentry in https://platform.claude.com/docs/en/build-with-claude/thinking-troubleshooting
("Omit the
thinkingparameter; these models think without any configuration").Reproduced for the Opus 5 case: a request with
thinking: {"type": "disabled"}andeffort
xhighis answered400 output_config.effort 'xhigh' is not supported when thinking is disabled on this model. Use effort 'high' or below, or enable thinking.Found by running a conformance statement against the reference at
fd4d592; the test in this change fails without the fix and passes with it. The full suite,ruff check,ruff format --checkandscripts/check.pyare clean on this branch.Amended 2026-09-18. The
Modelscomment inconfig.pystill describedNoneas"thinking disabled"; it now states what
Nonedoes. The behavioural consequence, for aconfig that sets
thinking_effort=Noneexplicitly: the model's default applies (thinkingon for Claude Sonnet 5, Opus 5 and Fable 5.x; off for Opus 4.7 and 4.8) instead of
thinking off. Both role configs default to
"low", so the shipped examples are unaffected.The stale comment was caught by the review in SanHsien's fork (
docs/DECISIONS.mdthere).