Fiks benchmark: legg til --output-format text for piped output
Uten dette flagget gir claude -p tom output når stdout er piped. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
f6f2897026
commit
773569759c
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ for file in "$SIMPLE_FILE" "$COMPLEX_FILE"; do
|
||||||
|
|
||||||
start_time=$(date +%s)
|
start_time=$(date +%s)
|
||||||
cd "$ROOT"
|
cd "$ROOT"
|
||||||
claude -p --model "${MODELS[$model_name]}" --dangerously-skip-permissions "$prompt" > "$outfile" 2>&1 || true
|
claude -p --model "${MODELS[$model_name]}" --output-format text --dangerously-skip-permissions "$prompt" > "$outfile" 2>&1 || true
|
||||||
end_time=$(date +%s)
|
end_time=$(date +%s)
|
||||||
|
|
||||||
elapsed=$((end_time - start_time))
|
elapsed=$((end_time - start_time))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue