fix: --verbose обязателен для stream-json + --allowedTools пусто
Claude CLI требует --verbose с --output-format=stream-json. --allowedTools="" отключает tools (только ответ, без actions). Тест: НР=109% для ж/д — корректный ответ с цитатой приказа 812/пр. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -127,8 +127,10 @@ async def stream_claude(
|
||||
"-p", full_prompt,
|
||||
"--model", "sonnet",
|
||||
"--output-format", "stream-json",
|
||||
"--verbose",
|
||||
"--system-prompt-file", "/tmp/system.txt",
|
||||
"--max-turns", "1", # no tools, just answer
|
||||
"--allowedTools", "", # no tools
|
||||
]
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user