小布工坊.
← Back to the library

Resource details · 消息处理

Promptfoo 项目导览

把提示词与模型表现放进重复评测。

Resource text, examples and licences retain their original language. Code is displayed only; this page does not execute it or call AI.

Resource details

供开发者为自己有权测试的模型应用整理评测用例。

Before you start

Platforms
Windows · macOS · Linux
Content updated
  • 使用 npm / npx 路线时,当前官方文档要求 Node.js 22.22.0 或更新版本;先确认所选版本。
  • 准备自己有权测试的模型应用、虚构测试用例和提供商配置。

本站未安装实测。外部 CLI 的依赖要求与本站零依赖教学示例不同,请按官方安装页处理。

Common pitfalls

  • Windows 先确认终端能找到 Node / npm;Homebrew 路线面向 Mac / Linux,不能直接照搬。
  • 每个用例都可能调用模型并计费;测试结果不是安全认证,也不能测试未授权系统。
Official setup guide ↗

Complete resource

可以先用虚构数据和小样本比较输出,再检查评测配置会把什么发送到哪些服务。安全测试仅应针对自己有权测试的系统,评测结果也不是安全认证。仓库维护组织为 promptfoo,主仓库采用 MIT;本次完整许可已核对并固定到提交 b678d240d8f1426bee776ff24c34252baa564e17(2026-10-23);后续版本和独立资产仍需分别核对。本站只提供项目导航,不提供上游源码下载。导览文字采用 CC BY 4.0;上游许可全文仅供核对,不表示本站完成了安全审计。主仓库许可不担保插件、模型、文档、素材或依赖均采用相同许可,请逐项确认。模型、云 API 与托管服务可能收费,开源不等于免费或无限使用。

How to use it

This entry currently provides a project guide without a separate three-step exercise. Read the complete text, prerequisites and pitfalls, then follow the official guide. This does not mean the upstream project was installed or tested here.

Authors and sources

Attribution
本站导览
Upstream author
promptfoo(GitHub 仓库维护组织)
Source revision
b678d240d8f1426bee776ff24c34252baa564e17
Licence checked
2026-10-23

Complete licence

CC BY 4.0

CC BY 4.0 · Read the complete licence ↗

Upstream licence · MIT

Copyright (c) Promptfoo 2025

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Read the complete licence ↗

Verification scope

资料与许可已核对

只核对项目资料和许可记录;未安装运行上游项目,也未进行安全审计。

2026-10-23