mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-23 00:41:40 +00:00
Bugbot flagged that `run_claude` placed the prompt as cmd[7] and then appended extra_args after it. `claude --print` takes the prompt as the final positional argument; flags appearing after it (e.g. `--allowed-tools Bash`, `--image <path>`) are swallowed by the prompt parser, which silently breaks the tool_use and vision cells. Build the flag list first, then append the prompt last. Add a unit test that pins the ordering. Co-authored-by: Mateo Wang <mateo-berri@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_cli_driver.py | ||
| test_compat_result.py | ||