mirror of
https://github.com/microsoft/SkillOpt.git
synced 2026-07-03 14:02:58 +08:00
fix(claude): use --effort instead of deprecated --thinking flag
Claude Code CLI v2.x renamed the flag; passing --thinking low causes all rollout calls to fail on CLI 2.1.87+. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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()])
|
||||
|
||||
Reference in New Issue
Block a user