mooncak397 Claude Sonnet 5.5 commited on
Commit
c90f86a
·
1 Parent(s): ef41800

run.py: no --env-file (it overrides PROVIDER_* and MODEL_*)

Browse files

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

Files changed (1) hide show
  1. evals/run.py +1 -1
evals/run.py CHANGED
@@ -43,7 +43,7 @@ def claude() -> bool:
43
 
44
  def run_eval(out: Path, ids=None, judge=True, delay=None, replay_from=None):
45
  env = {**os.environ, "EVAL_JUDGE": "1" if judge else "0"} # read by evals/tests.py
46
- cmd = ["npx", "promptfoo@0.126.0", "eval", "-c", "evals/promptfooconfig.yaml", "--env-file", ".env",
47
  "--no-cache", "-o", str(out)]
48
  if ids is not None:
49
  cmd += ["--filter-pattern", "^(" + "|".join(sorted(ids)) + ")$"]
 
43
 
44
  def run_eval(out: Path, ids=None, judge=True, delay=None, replay_from=None):
45
  env = {**os.environ, "EVAL_JUDGE": "1" if judge else "0"} # read by evals/tests.py
46
+ cmd = ["npx", "promptfoo@0.126.0", "eval", "-c", "evals/promptfooconfig.yaml", # no --env-file: it would override PROVIDER_* and MODEL_* ; the Python code reads .env itself
47
  "--no-cache", "-o", str(out)]
48
  if ids is not None:
49
  cmd += ["--filter-pattern", "^(" + "|".join(sorted(ids)) + ")$"]