npm / promptfoo
promptfoo
What changed in promptfoo 0.121 to 0.124, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
35 breaking24 security1 deprecations90 new APIs and options1 performance24 behavior and defaults1 tooling142 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initpromptfoo 0.12472 changes
Breaking changes 17
Browser SDKs now require explicit installation.
The Codex Security SDK is now opt-in rather than included by default.
The Codex Security SDK is now opt-in rather than loaded by default.
The hosted ChatKit provider has been removed.
The hosted ChatKit provider was removed.
The Langfuse SDK is now opt-in rather than included by default.
The Langfuse SDK is now opt-in rather than loaded by default.
Local Transformers is now opt-in rather than included by default.
Local Transformers is now opt-in rather than loaded by default.
OpenAI Agents now requires an explicit install.
OpenAI Agents now requires explicit installation.
The Slack SDK is now opt-in rather than included by default.
The Slack SDK is now opt-in rather than loaded by default.
The CLI now returns a failing exit code when a target error stops an evaluation.
Invalid VLSU concurrency values are now rejected.
WatsonX SDKs are now opt-in rather than included by default.
WatsonX SDKs are now opt-in rather than loaded by default.
Security 1
Red-team stops Meta on invalid JSON requests.
New APIs and options 11
Exposes text-token pricing from the provider catalog.
Adds support for OpenAI Decisions.
Claude Opus 5.5 is now supported as a provider model.
Paused Claude server-tool turns can now be resumed.
Claude Sonnet 5.5 is now supported as a provider model.
Coding agents can now run in isolated workspaces.
GPT-6 Sol and Luna are now supported provider models.
GPT-6.1 Sol and its ultrafast variant are now supported.
Grok 4.7 is now supported as a provider model.
OpenAI safety identifiers are now supported by providers.
A TypeSafe Jev provider is now available.
Performance 1
Indexes extracted tests when filtering evaluation results.
Behavior and default changes 7
Assertions can record cost without requiring a threshold.
Promptfoo now warns when Azure service principal configuration is partial.
Bedrock GPT-6 Sol and Luna are now treated as reasoning models.
Claude providers now report usage per call.
Metadata filtering now supports comma-separated OR values.
Redteam reports which turn the grader flagged.
GPT-6 Chat is no longer capped by OPENAI_MAX_TOKENS.
Fixes and other changes 35
Fixes handling of assertion comments.
Preserves grading for asynchronous expressions.
Preserves Cloud errors.
Retains the prepared custom environment.
Fixes handling of dataset limits.
Samples dataset plugin rows uniformly.
Evaluation now respects the #gid in Google Sheets URLs.
Exposes incomplete Responses status from providers.
Preserves complete JSON objects.
Preserves grading for keyword properties.
Red-team runs report missing target output as errors.
Adds a check for npm aliases.
Code-scan OIDC tokens are minted after CLI installation.
Preserves regex operands after yield.
Array sampling no longer has bias.
Assertions now accept grader result shapes that earlier releases recorded.
Bedrock providers now honor region overrides.
Blank BLEU references are ignored.
Vertex now preserves zero Claude sampling parameters.
CommonJS consumers can now use the package API.
Custom grading results are now validated.
Evaluation configs downloaded from the web UI remain importable.
ElevenLabs TTS now respects the configured cache policy.
The --env-file option and config environment are now honored for prompt separator and assertion concurrency.
Configuration now accepts numeric and boolean environment values.
A literal comma is now allowed in metadata filter values.
Inverse RAG scores are clamped to the documented 0–1 range.
The not- prefix is now honored for model-graded-closedqa and factuality assertions.
Null Ollama tool arguments are now treated as empty.
Ollama tool calls are accepted back in multi-turn conversations.
OpenAI Agents token counts are now validated.
Providers now honor cache overrides supplied per call.
Redteam now preserves zero sampling values.
Iterative, crescendo, and iterative:tree now honor an explicitly configured redteamProvider.
Vercel provider response handling was simplified.
promptfoo 0.12357 changes
Breaking changes 8
credit_balance_exhausted is now treated as a hard quota error.
Ollama embeddings now use /api/embed and honor configuration.
RAG assertion thresholds now default to 0.5.
Inverting a search-rubric assertion now inverts its score along with its pass result.
Non-string search rubrics are now rejected.
GitHub Models inference has been retired.
GPT-5.6+ now defaults to the Responses API, a breaking provider behavior change.
Retired OpenAI models are removed.
Security 4
Agents endpoint credentials are isolated.
Custom header requests have been hardened.
Local configuration is no longer leaked into provider request bodies.
Credential-named variables are redacted in persisted environment maps.
New APIs and options 18
A Gemini 3.8 provider is available for use in evaluations.
Providers now support GPT-Live voice sessions.
A provider for the OpenAI Agents API is now available.
Portable HTTP configuration schemas are available for providers.
Portable MCP configuration schemas are available for providers.
Vertex Live is available as a provider.
Adds Claude Fable as a supported provider model.
Adds support for Gemini 3.8 Flash.
Adds GPT-6 Astra support.
Supports image generation with GPT Image 2.5.
Supports file uploads for GPT Transcribe.
Adds grok-4.6 as a supported provider model.
Adds grok-imagine-image-2.0 as a supported provider model.
Adds grok-imagine-video-1.5 as a supported provider model.
llm-rubric can grade native audio.
Adds support for Muse Spark 1.3.
Adds Mythos 5.1 as a supported provider model.
MCP tool calls are exposed in response metadata.
Behavior and default changes 3
Gemini provider tool and media support has been updated.
Providers support Ollama 0.34 features.
Ollama provider results now surface thinking output and the finish reason.
Fixes and other changes 24
Image loading now supports AVIF and TIFF, and SDK options are honored.
The normalized Envoy base URL is applied after the user configuration spread.
MCP now accepts fine-tuned model identifiers.
Foundry overrides are now honored.
Prompt Gemini tool policy now takes precedence over passthrough.
The Helicone key now honors --env-file and config env.
The Langfuse base URL now honors --env-file and config env.
Default MCP enablement is preserved.
Grader failures are no longer inverted for not-classifier assertions.
Grader failures are no longer inverted for not-search-rubric assertions.
Nova Sonic providers now honor inference configuration.
Ollama HTTP errors are surfaced instead of being returned as empty output.
Streamed Ollama tool calls are now preserved.
CLI result export now handles large values.
Snowflake provider configuration is now forwarded.
Resolved TogetherAI model parameters are no longer overwritten.
Malformed webhook results are now rejected.
Credential names from the environment are matched case-insensitively; vendor names are no longer redacted.
The Go provider supports importable packages.
MCP commands can be specified with zero arguments.
Multipart requests support Windows drive-letter paths and file:// source paths.
Recognizes OpenAI Responses function_call items when calculating tool-call-f1.
Watch mode now handles scalar and generator tests references.
The CLI stays alive while watch mode is watching.
promptfoo 0.12220 changes
Breaking changes 1
Node.js 20 support was dropped, so developers must use a supported Node.js version.
Security 3
Sanitized output now redacts AWS SigV4 credentials.
All callback loaders now apply a path-traversal guard.
Nscale provider settings no longer leak into the request body.
New APIs and options 10
Adds a provider for the Codex Security SDK.
Cloud authentication now supports configuring the auth header name.
Tracing can fetch external traces from Braintrust.
Tracing supports telemetry from Claude and Codex subprocesses.
Adds Gemini 3.7 Flash and Flash-Lite providers for use in evaluations.
Tracing can fetch external spans from Grafana Tempo.
Tracing can fetch external traces from Langfuse.
Tracing integrates OpenAI Agents and Vercel SDK telemetry.
Red-team accounting includes multi-turn attacker and grading tokens and reports generation, target, attacker, and grading usage.
Tracing adds test-case roots and universal target spans.
Behavior and default changes 3
Tracing now instruments grading and red-team execution.
Tracing spans are aligned with OpenTelemetry GenAI conventions.
Evaluation distinguishes scan footprint from incurred token usage, helping developers understand token accounting.
Fixes and other changes 3
The Claude Agent SDK provider now honors cancellation.
Corrected Nscale model identifiers so developers can use the right model names.
WebSocket evaluations no longer hang when a stream stalls.
promptfoo 0.121169 changes
Breaking changes 9
Tool calls missing a function object now return pass:false.
The legacy environment variable no longer steers cloud host resolution.
CSV input using __expected0 is now rejected instead of having its configuration silently dropped.
Now rejects non-well-formed XML.
When given an array, not-similar now requires dissimilarity to every value.
Azure provider types without a default now require a deployment name.
Fractional inline comment line values are rejected.
Remote authentication is restricted to the cloud host.
MiniMax function_call requests are rejected.
Security 16
Preserves retries for certificate-like URLs and restores secret-safe WebSocket retries.
Escapes CSV formula injection in result exports.
Remote data-sharing controls are now honored.
Transformed request debug logs are now redacted.
Provider credentials in web UI test filters are now redacted.
Validation and target discovery are hardened.
Redacts api-key and legacy transport headers in JSONL and database output.
Redacts credentials from the persisted browser store.
Preserves and hardens programmatic JSONL output.
Authenticates remote-generation requests against on-prem cloud.
Preserves refusal guardrails in streamed Anthropic responses.
Azure Blob SAS tokens are redacted in evaluation outputs.
Refreshed HTTP auth tokens are returned safely.
The MLflow Gateway API key is redacted.
Script temporary artifacts are secured.
Code scanning isolates the action OIDC token and scopes it to the scan subprocess.
Deprecations 1
The CLI warns users that the Node.js 20 runtime is deprecated.
New APIs and options 51
Adds Claude Opus 5 support for use as a provider model.
Adds Kimi K3 support to the Moonshot provider.
Adds URL templating support for WebSocket use.
Adds support for Bedrock GPT-5.6 frontier models.
Adds the goblin strategy for red-team runs.
Adds a provider for the Meta Model API (Muse Spark).
Adds an Open Interpreter provider.
Adds helpers for accumulating token usage from errors and generation.
Adds support for xAI Grok 4.5.
Adds Claude Sonnet 5 support across Anthropic, Bedrock, Vertex, and Azure.
Expands Google model support with Nano Banana 2 Lite, GA image aliases, and gemini-pro-latest.
Adds preview support for GPT-5.6.
Adds a Moonshot (Kimi) provider.
Adds a per-test repeat option.
Adds support for Claude Fable and Mythos providers.
Adds an Azure MAI image provider and MAI model recognition.
Assertions can now grade multimodal outputs.
Adds an A2A provider for using A2A with promptfoo.
Adds the agent-rubric grader for assertions.
Adds Codex on Amazon Bedrock.
Promotes Fireworks AI from a registry stub to a dedicated provider.
Adds OpenAI GPT-5.5 and GPT-5.4 frontier models.
Adds a lightweight promptfoo/contracts subpath for importing contracts.
Adds runtime receiver controls for tracing.
Adds seeded random sampling to the CLI.
Exposes traceable agent turn markers through providers.
Assertion context gains a metadata shortcut for accessing metadata.
Evaluation can load test sets from Azure Blob Storage.
Anthropic provider support now includes Claude Opus 4.8.
Evaluation supports runtime variables.
Google provider support adds Gemini 3.5 Flash and refreshes Google and Vertex models.
A MiniMax provider is available for using MiniMax models in promptfoo.
An MLflow AI Gateway provider is available.
An n8n webhook provider is available.
CSV exports include named metric columns.
A Novita provider is available.
An NVIDIA NIM provider is available.
An OrcaRouter provider is available.
The CLI adds prompt optimization.
Redteam runs support runtime tags.
The assertion accepts an ignore option, including glob patterns, to exclude tool arguments from matching.
Providers support Agents SDK 0.9 workflows.
Redteam supports context purpose overrides.
Fetch cache options now support repeat-aware behavior.
The evaluation interface adds a toggle for displaying metrics pills.
The CLI can import OpenAI Evals dashboard exports.
MCP supports response transforms.
Evaluations now support runtime tags.
Code scanning supports SARIF output, with refinements to its ergonomics.
The CLI adds a searchable team selector.
Adds Arrow 1.1 models, a vectorize endpoint, and a GPT Image-2 pipeline for QuiverAI.
Behavior and default changes 11
The default conversation-relevance threshold is now 0.5.
Claude Code credentials now honor CLAUDE_CONFIG_DIR.
Red-team token usage now accounts for the generation phase.
Adds support for GPT-5.6 GA.
Public types and schemas now allow token-usage fields to be optional.
Prompt reference errors now include the YAML source location, helping identify where the error originates.
The Docker build unpins the Python minor version by default so Alpine version drift does not break builds.
The default MiniMax model is upgraded to M3.
Adds an OpenAI originator header.
Surfaces trace linkage on result rows, making trace associations visible in evaluation results.
Matching tolerates optional defaults in tool arguments.
Tooling 1
Publishes all four promptfoo skills to the Claude Code marketplace.
Fixes and other changes 80
Avoids a crash when completion choices are empty.
Conversation history is isolated by result column.
Preserves generation provider selection in red-team workflows.
Aligns OpenAI model definitions and capabilities.
Avoids prompt index collisions when providers are duplicated.
Adds current Azure, Claude, and Gemini models.
Rejects Vertex Omni passthrough follow-ups.
Token usage now reports cached request counts.
The filter-condition combiner now recognizes lowercase 'or'.
The contains and icontains assertions now accept numeric 0 as a value.
Missing faithfulness verdicts are now counted as unsupported.
Corrects billing for GPT-5.6 image input tokens.
Preserves TrueFoundry filter errors.
Handles TrueFoundry guardrail blocks.
Addresses xAI response edge cases.
Returns pass:false for empty output instead of throwing.
Can now extract fenced SQL containing backtick identifiers.
Now respects inverse when output is missing.
No longer falsely rejects SELECT DISTINCT.
Preserves the JSONL row description instead of overwriting it.
Errors for malformed JSON and JSONL test files now report the file and line.
Moonshot configuration options are flattened.
CSV test-case parsing now preserves a zero threshold.
Corrects token usage reporting where totals omitted prompt tokens and completion usage was miscomputed.
Adds support for WebSocket subprotocols in providers and surfaces them in the app.
Applies the xAI cache-read discount to cost calculation.
Stranded list markers are dropped during RAGAS context-relevance segmentation.
Benign URL values that mention a credential keyword are no longer over-redacted.
Anthropic thinking token usage is now preserved.
Corrects the brevity penalty formula, makes closest-reference tie-breaking order-independent, and prevents scores from collapsing for short candidates.
Inverse (not-) assertions are now honored for cost, latency, and perplexity.
All escaped commas in array metadata values are now unescaped.
Evaluation now handles config directory inputs without a promptfooconfig file.
Inverse (not-) is now honored for the levenshtein assertion.
Inverse behavior is now honored for not-moderation.
Inverse behavior is now respected when an object value cannot parse output as JSON.
Provider requests now respect originator header overrides.
The prompt function is preserved across beforeAll extension hooks.
Validation now accepts falsy provider outputs.
Prose context is segmented into sentences for RAGAS context relevance.
ROUGE scoring is now case-insensitive.
Code-scan SARIF skip errors are no longer written to stdout.
Reports the best similarity score when no array value passes.
A threshold of 0 is now honored for tests and assertion sets.
Red-team token plugins now work with multi-input.
Auto-share is enabled for on-prem Report Server after login.
Cloud request headers are preserved.
Findings are processed in mixed skip responses.
Config ordering is preserved when expanding a directory entry.
The optional GCP metadata warning is suppressed.
Metadata and result filters now compose.
Handles rate limits from the Codex SDK.
Stops classifying gen_ai.tool.definitions chat spans as tool calls.
Preserves n8n array body templates.
Injects n8n sessions into custom bodies.
Renders metric charts when they contain only negative values.
Restores nested SAS tokens after array reorder.
Uses the on-prem API host for guardrails, http-generator, and checkEmailStatus.
Serializes persistent browser sessions.
Canonicalizes retry JSONL output with atomic rewrites.
The fetch cache key is stable across processes.
Gemini safety block handling is aligned across providers.
AI Studio grounding metadata is preserved.
Raw Google stream chunks are preserved.
Vertex providers now honor default host overrides.
Reasoning tokens are no longer double-counted in xAI cost calculations.
Compressed responses are decompressed through a fallback on Node 26.
Code scanning skips unrelated default config startup.
Malformed evaluation imports now produce clearer errors.
Cache JSON parse errors now include the response status.
Anthropic MCP now honors max_tool_calls: 0.
OpenClaw supports protocol negotiation for versions 3 and 4.
Pooled undici responses are decompressed.
The Realtime socket is torn down when a response times out.
Realtime tools are supported in persistent sessions.
Code-scan logs are routed to stderr so structured output is not mixed with log output.
MCP now surfaces tool error results.
Fixes handling of MCP target prompt materialization in redteam.
Shows the target type selector immediately in redteam.
Keeps fresh target type state in sync in redteam.