#11093·promptfoo

单字符串 `tests:` 忽略 globs (文档中 `tests: file://tests/*` 会默默加载 0 个测试)

作者: hardness1020创建于 2026年9月26日更新于 2026年9月26日

描述错误

当 tests 是一个单个字符串而不是一个数组时,promptfoo 仅对以 yaml/yml 结尾的字符串执行 glob 扩展。其他所有字符串都被读取为一个字面文件路径。因此:

内容来源: promptfoo/promptfoo