Merge pull request #24 from lvbaocheng/fix/claude-cli-effort-flag

fix(claude): use --effort instead of deprecated --thinking flag
This commit is contained in:
Yif Yang
2026-05-30 15:31:00 +08:00
committed by GitHub
+1 -1
View File
@@ -254,7 +254,7 @@ def _run_claude_print(*, system: str, prompt: str, model: str, tools: list[dict[
if system:
cmd.extend(["--append-system-prompt", system])
if effort:
cmd.extend(["--thinking", effort])
cmd.extend(["--effort", effort])
structured_output = bool(return_message)
if structured_output:
cmd.extend(["--schema", _assistant_message_schema_wrapper()])