Skip to content

Commit 872e6cb

Browse files
yoomlamfg-nava
andauthored
perf: Minimize Promptfoo concurrency to 1 thread (#317)
Co-authored-by: fg-nava <189638926+fg-nava@users.noreply.github.com>
1 parent 2b1ff17 commit 872e6cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/promptfoo-googlesheet-evaluation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ jobs:
118118
EVAL_OUTPUT_FILE="/tmp/promptfoo-output.txt"
119119
120120
if [ -n "$PROMPTFOO_API_KEY" ]; then
121-
promptfoo eval --config "/tmp/promptfooconfig.processed.yaml" --share --output "${OUTPUT_JSON_FILE}" --no-cache | tee "${EVAL_OUTPUT_FILE}"
121+
promptfoo eval --max-concurrency 1 --config "/tmp/promptfooconfig.processed.yaml" --share --output "${OUTPUT_JSON_FILE}" --no-cache | tee "${EVAL_OUTPUT_FILE}"
122122
else
123-
promptfoo eval --config "/tmp/promptfooconfig.processed.yaml" --output "${OUTPUT_JSON_FILE}" --no-cache | tee "${EVAL_OUTPUT_FILE}"
123+
promptfoo eval --max-concurrency 1 --config "/tmp/promptfooconfig.processed.yaml" --output "${OUTPUT_JSON_FILE}" --no-cache | tee "${EVAL_OUTPUT_FILE}"
124124
fi
125125
126126
if [ -f "${OUTPUT_JSON_FILE}" ]; then

0 commit comments

Comments
 (0)