安全研究官方发布自动监测

Promptfoo 0.126.0

Promptfoo 0.126.0 restricts derived metrics formulas (blocking function calls, assignments, and expressions over 1,024 characters), requires Node.js 24+ for full code scans, and adds provider support for new OpenAI, Anthropic, and Google models alongside credential security improvements.

原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。

人类阅读

为什么值得关注

Promptfoo version 0.126.0 introduces breaking constraints on evaluation configuration and runtime environments. String formulas in derivedMetrics are now restricted: arithmetic, comparisons, ternaries, and score names remain supported, but function calls, property access, assignments, and formulas exceeding 1,024 characters will halt the evaluation prior to test execution. Complex metric logic must be migrated to JavaScript configuration functions. Additionally, full-repository code scans now require Node.js 24 or later (diff-only scans remain supported on Node.js 22.22+). Full scans may share committed repository text with the hosted scanner unless diffsOnly: true is configured. On the model integration side, this release adds provider support for OpenAI's GPT-6.2 Astra and Sol via the Responses API, Anthropic's Claude Fable and Mythos 5.2, and Google's Gemini 4 Argon and Hydrogen. It also introduces grading capabilities for multimodal content (text, image, audio, video, PDFs) via google:decisions:gemini-decision-1 , along with Gemini Live and Vertex file transcription. Security improvements include POSIX access restrictions on saved cloud credentials and redaction of Azure Storage connection strings in logs and exports.

Agent 解析

可执行摘要

Promptfoo 0.126.0 introduces breaking changes to derived metrics syntax (disallowing function calls, property access, assignments, and lengths 1,024 chars before test execution) and requires Node.js =24 for full repository code scans. It adds model provider support for openai:gpt-6.2-astra/sol, Claude Fable, Mythos 5.2, Gemini 4 Argon/Hydrogen, and google:decisions:gemini-decision-1, while enhancing credential…

Agent 实用度
94/100
可信度
96%
机器格式
JSON + Markdown
下一步

开发者应核对什么

  • Audit all derivedMetrics formulas in Promptfoo configuration files; replace function calls like max(a, b) with ternary operators or migrate complex logic to JavaScript config functions.
  • Ensure derivedMetrics string formulas do not exceed 1,024 characters.
  • Upgrade runtime to Node.js 24+ if running full-repository code scans, or set diffsOnly: true in the code-scan configuration to keep scans diff-only on Node.js 22.22+.
分类

标签与路由

evaluationred-teamtesting
相关信号

继续阅读