From 70df716a02a82444074259b0ca84e4124cd43fb3 Mon Sep 17 00:00:00 2001 From: Colin Eberhardt Date: Thu, 18 Jun 2026 23:24:14 +0100 Subject: [PATCH] Fix path for .env file in README (#104) The reproduction steps involve running promptfoo from the benchmarks folder. In order for the environment var9ables in `.env` to be discoverable they need to be in this folder, not the project root. --- benchmarks/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmarks/README.md b/benchmarks/README.md index 8b8a903..b4bd57c 100644 --- a/benchmarks/README.md +++ b/benchmarks/README.md @@ -10,7 +10,7 @@ Requires an Anthropic API key and **Node.js ≥ 22.22.0** (promptfoo's engine co check with `node --version` and upgrade if needed): ```bash -cp ../.env.example ../.env # add your ANTHROPIC_API_KEY +cp ../.env.example .env # add your ANTHROPIC_API_KEY npx promptfoo@latest eval -c promptfooconfig.yaml --env-file ../.env --repeat 10 npx promptfoo@latest view ```