# Changelog of SiteVerdict — LLM Eval Runner (prompt tests, regressions, cost) (`siteverdict/siteverdict-llm-eval-runner`) Actor

- **URL**: https://apify.com/siteverdict/siteverdict-llm-eval-runner/changelog.md
- **Full Actor documentation**: https://apify.com/siteverdict/siteverdict-llm-eval-runner.md

## Changelog

### 1.2.0 — 2026-11-13 (candidate, not released)

- A judge or embedding request that still fails after retries (429, 5xx, timeout) now makes the case an `error` instead of a model failure: no `test-case-run` charge, and the error is shown on the row.
- Provider and judge errors are no longer counted as regressions, so a provider outage does not trip `failOnRegression`. They are reported as `errors` in `OUTPUT`, the report and the status message. An errored case keeps its last good baseline entry.
- Runs with `tagFilter`, or runs cut by `maxCalls`, no longer report the other tests as "removed" and no longer drop them from the baseline.
- Price table refreshed (Claude Fable 5.2, Opus 4.7/4.6 added; checked 13 Nov 2026).
- Model and version identification: every row records the requested model and the provider-returned version (OpenAI/Anthropic `model`, Gemini `modelVersion`), OpenAI `systemFingerprint`, the provider response id, and the settings actually sent (`temperature`, `topP`, `seed`, `maxTokens`), plus a `promptHash`. `OUTPUT.reproducibility` summarises them per model and for the judge.
- Seed: new `seed` input (default 42; -1 for none), sent as OpenAI `seed` and Gemini `generationConfig.seed` to model and judge calls. Anthropic has no seed parameter (recorded as `null`). Repeat r uses seed + r - 1. Per-model `seed` and `topP` options.
- Judge: temperature 0 by default on OpenAI and Gemini judge models (new `judgeTemperature` overrides; nothing is sent to Claude or OpenAI reasoning models, which reject it), new `judgeMaxTokens`, and the judge prompt template has a version (`judge-v1`) and hash recorded on every judged row.
- Token and cost accounting: judge tokens and embedding tokens are now counted and priced (they were dropped before). Rows, provider summaries, `OUTPUT.tokens`, `OUTPUT.providerCostEstimate`, the report and `RESULTS.csv` show the model under test, the judge and embeddings separately, plus a total. All costs are labelled estimates; an unpriced model gives `null`, never $0.
- Retries: 408 is retried too; `Retry-After` given as an HTTP date and `retry-after-ms` are honoured. Embedding requests now get the same retries, timeout and key redaction as model requests.
- Key safety: errors and logs also strip URL query strings (for example a `?key=` URL echoed in a network error), Google-style keys and header-style key strings.
- User-Agent for suite and webhook requests is now `SiteVerdict/llm-eval-runner (+https://webrevenuescan.com)`.
- Mistral is no longer offered. It had never been tested against the real Mistral API and its terms need review. `mistral` as a model provider or judge provider is now rejected at input with a clear message, and the Mistral key field was removed. Supported providers: OpenAI, Anthropic, Google Gemini and the free mock.

### 1.1.0 — 2026-11-03

- Billing: the run never asks for more events than fit in your maximum total charge. Parallel cases reserve their charge before calling the model, and judge-call charges are capped to what is left.
- Billing: a judge request that failed is no longer counted or charged.
- A budget that is used up exactly is a complete run (no false "stopped" warning; the baseline is saved).
- When the maximum total charge stops a run: one `skipped` dataset row per case not run (not charged), `OUTPUT.incomplete`, `OUTPUT.notProcessedForBudget`, `OUTPUT.casesPlanned`, and a status message "N cases not processed (max total charge reached)".
- Contact address updated to hello@webrevenuescan.com.

### 1.0.0 — 2026-10-11

- First release.
- JSON test suites, inline or from a URL:
  - defaults (system prompt, vars, shared assertions)
  - `{{variables}}`, multi-turn messages and tags
- Providers (BYOK): OpenAI, Anthropic, Google Gemini and Mistral, plus a free mock provider.
- 16 assertion types, including JSON Schema (Ajv), lexical or embedding similarity, LLM-as-judge, and latency/cost limits. Assertions are weighted.
- Repeats for flakiness, concurrency and a max-cases cap.
- Per-model metrics: pass rate, average score, average and p95 latency, tokens and estimated cost (overridable price table).
- Regression diff against the last run in a named store: regressions, fixes, score drops, new/removed cases, and pass-rate, cost and latency deltas.
- Outputs: `REPORT.html` (provider table, test × model matrix, failures), `RESULTS.csv` and an `OUTPUT` summary.
- Slack/HTTPS webhook alerts. CI gates `failOnRegression` and `minPassRate`, which keep the last good baseline when they trip.
- Keys are secret inputs, redacted from every output. Webhook and suite URLs are SSRF-guarded.
- Pay-per-event: `test-case-run` and `llm-judge-call`.
