{"id":111932,"date":"2026-10-02T08:40:46","date_gmt":"2026-10-02T00:40:46","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/111932.html"},"modified":"2026-10-02T08:40:46","modified_gmt":"2026-10-02T00:40:46","slug":"l3%e5%bc%80%e6%ba%90%e8%af%84%e6%b5%8b%ef%bd%9cpromptfoo-%ef%bc%9a%e9%85%8d%e7%bd%ae%e5%8d%b3%e5%a5%91%e7%ba%a6%ef%bc%8c%e4%b8%80%e4%b8%aa%e8%af%84%e6%b5%8b%e5%b7%a5%e5%85%b7","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/111932.html","title":{"rendered":"L3\u5f00\u6e90\u8bc4\u6d4b\uff5cPromptfoo \uff1a\u914d\u7f6e\u5373\u5951\u7ea6\uff0c\u4e00\u4e2a\u201c\u8bc4\u6d4b\u5de5\u5177\u201d\u5982\u4f55\u5148\u8bc4\u6d4b\u81ea\u5df1"},"content":{"rendered":"<h2>L3\u5f00\u6e90\u8bc4\u6d4b&#xff5c;Promptfoo &#xff1a;\u914d\u7f6e\u5373\u5951\u7ea6&#xff0c;\u4e00\u4e2a\u201c\u8bc4\u6d4b\u5de5\u5177\u201d\u5982\u4f55\u5148\u8bc4\u6d4b\u81ea\u5df1<\/h2>\n<p>\u8bc4\u6d4b\u7f16\u53f7&#xff1a;L3-OSB-20260922-04<br \/>\n\u8bc4\u6d4b\u5bf9\u8c61&#xff1a;promptfoo\/promptfoo &#064; 93b2b18f<br \/>\n\u9879\u76ee\u5b9a\u4f4d&#xff1a;LLM\u7ea2\u961f\u6d4b\u8bd5\u4e0e\u63d0\u793a\u8bcd\u81ea\u52a8\u8bc4\u6d4b\u5de5\u5177&#xff08;CLI &#043; Node.js\u5e93&#xff09;<br \/>\n\u6570\u636e\u6307\u6807&#xff1a;5,566\u4e2a\u6811\u6587\u4ef6 | 30\u4e2a\u9650\u5b9a\u68c0\u51fa | 8\/8\u68c0\u67e5\u9879\u5168PASS | \u8bc1\u636e\u8986\u76d6\u7387100%<br \/>\n\u534f\u8bae&#xff1a;MIT | \u6700\u65b0\u7248\u672c&#xff1a;0.123.0&#xff08;2026-09-10&#xff09;<br \/>\n\u98ce\u9669\u59ff\u6001&#xff1a;\u26a0\ufe0f elevated&#xff08;\u914d\u7f6e\u9762\u7206\u70b8medium &#043; \u72b6\u6001\u6301\u4e45\u5316low&#xff09;<br \/>\n\u4f5c\u8005&#xff1a;Valhalla Matrix\u6cbb\u7406\u5b9e\u9a8c\u5ba4<\/p>\n<p>\u6458\u8981&#xff1a;Promptfoo\u662fLLM\u8bc4\u6d4b\u4e0e\u7ea2\u961f\u6d4b\u8bd5\u9886\u57df\u7684\u4e8b\u5b9e\u6807\u51c6\u30022026\u5e743\u6708\u52a0\u5165OpenAI\u540e&#xff0c;\u5b83\u5df2\u62e5\u670924.9k GitHub Stars\u300152.4\u4e07\u5468\u4e0b\u8f7d\u91cf&#xff0c;\u88abOpenAI\u548cAnthropic\u7528\u4e8e\u751f\u4ea7\u73af\u5883\u7684LLM\u6d4b\u8bd5\u3002\u672c\u6b21L3\u626b\u63cf\u7ed9\u51fa\u4e868\/8\u5168PASS\u7684\u9759\u6001\u8bc1\u636e\u6210\u7ee9&#xff0c;\u4f46\u98ce\u9669\u59ff\u6001\u88ab\u6807\u8bb0\u4e3a\u201celevated\u201d\u2014\u2014\u914d\u7f6e\u9762\u7206\u70b8\u88ab\u5217\u4e3amedium\u7ea7\u522b\u98ce\u9669\u3002\u8fd9\u4e2a\u5224\u65ad\u7684\u5de5\u7a0b\u542b\u4e49\u503c\u5f97\u6df1\u7a76&#xff1a;\u4e00\u4e2a\u7528\u4e8e\u8bc4\u6d4b\u522b\u4ebaLLM\u5e94\u7528\u7684\u5de5\u5177&#xff0c;\u5176\u81ea\u8eab\u7684\u914d\u7f6e\u7cfb\u7edf&#xff08;tsconfig &#043; drizzle &#043; tsdown &#043; vitest &#043; Zod schema&#xff09;\u5df2\u7ecf\u590d\u6742\u5230\u9700\u8981\u4e00\u4e2a\u4e13\u95e8\u7684\u6d4b\u8bd5\u6587\u4ef6\u6765\u6821\u9a8c\u914d\u7f6eschema\u3002\u66f4\u6709\u8da3\u7684\u662f&#xff0c;Promptfoo\u57282026\u5e741\u6708\u4fee\u590d\u4e86CVE-2026-22036&#xff08;undici\u65e0\u9650\u5236\u89e3\u538b\u94fe\u6f0f\u6d1e&#xff09;\u2014\u2014\u4e00\u4e2a\u7ea2\u961f\u5de5\u5177&#xff0c;\u9996\u5148\u9700\u8981\u7ea2\u961f\u81ea\u5df1\u3002\u672c\u6587\u4eceL3\u8bc4\u6d4b\u62a5\u544a\u51fa\u53d1&#xff0c;\u7ed3\u5408Promptfoo\u7684\u8bc4\u4f30\u5f15\u64ce\u67b6\u6784\u30012026\u5e74\u5173\u952e\u529f\u80fd\u6f14\u8fdb\u3001\u4ee5\u53caSnyk\u62ab\u9732\u7684\u5b89\u5168\u6f0f\u6d1e&#xff0c;\u62c6\u89e3\u8fd9\u4e2a\u201c\u8bc4\u6d4b\u5de5\u5177\u201d\u5982\u4f55\u5728\u201c\u8bc4\u6d4b\u81ea\u5df1\u201d\u7684\u5de5\u7a0b\u6210\u8272\u4e0e\u5b89\u5168\u8fb9\u754c\u3002\u6838\u5fc3\u5224\u65ad&#xff1a;Promptfoo\u7684\u9759\u6001\u5de5\u7a0b\u8bc1\u636e\u5b8c\u5907&#xff0c;\u4f46\u201c\u914d\u7f6e\u9762\u7206\u70b8\u201d\u7684elevated\u4fe1\u53f7\u63d0\u793a\u4e86\u4e00\u4e2a\u9700\u8981\u6b63\u89c6\u7684\u8fb9\u754c\u2014\u2014\u5b83\u7684\u6838\u5fc3\u8bca\u65ad\u903b\u8f91\u662f\u62a4\u57ce\u6cb3&#xff0c;\u4f46\u914d\u7f6e\u7cfb\u7edf\u7684\u590d\u6742\u5ea6\u662f\u8fd0\u7ef4\u6210\u672c\u3002<\/p>\n<h3>\u4e00\u3001L3\u8bc4\u6d4b\u62a5\u544a\u89e3\u8bfb&#xff1a;8\/8\u5168PASS\u4e0b\u7684\u201celevated\u201d\u4fe1\u53f7<\/h3>\n<p>\u5148\u770b\u672c\u6b21L3\u8bc4\u6d4b\u7684\u6838\u5fc3\u6570\u636e&#xff1a;<\/p>\n<table>\n<tr>\u6307\u6807\u89c2\u6d4b\u503c<\/tr>\n<tbody>\n<tr>\n<td align=\"left\">\u6811\u6587\u4ef6\u603b\u6570<\/td>\n<td align=\"left\">5,566<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u9650\u5b9a\u68c0\u51fa<\/td>\n<td align=\"left\">30<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u68c0\u67e5\u901a\u8fc7<\/td>\n<td align=\"left\">8\/8<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u8bc1\u636e\u8986\u76d6\u7387<\/td>\n<td align=\"left\">100%<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u98ce\u9669\u59ff\u6001<\/td>\n<td align=\"left\">elevated<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>8\/8\u5168\u901a\u8fc7&#xff0c;\u8bc1\u636e\u8986\u76d6\u7387100%\u3002 \u4f46\u98ce\u9669\u59ff\u6001\u88ab\u6807\u8bb0\u4e3aelevated\u2014\u2014\u8fd9\u662f\u672c\u6b21L3\u7cfb\u5217\u8bc4\u6d4b\u4e2d\u7ee7Argo CD\u4e4b\u540e\u7684\u7b2c\u4e8c\u4e2aelevated\u9879\u76ee\u3002<\/p>\n<p>\u98ce\u9669\u5207\u7247\u4e2d&#xff0c;config_surface_explosion&#xff08;\u914d\u7f6e\u9762\u7206\u70b8&#xff09;\u88ab\u6807\u8bb0\u4e3amedium\u7ea7\u522b&#xff0c;\u8bc1\u636e\u6570\u4e3a8&#xff0c;\u662f\u6240\u6709\u98ce\u9669\u6807\u7b7e\u4e2d\u4e25\u91cd\u5ea6\u6700\u9ad8\u3001\u8bc1\u636e\u6700\u591a\u7684\u3002<\/p>\n<table>\n<tr>\u98ce\u9669\u6807\u7b7e\u4e25\u91cd\u5ea6\u8bc1\u636e\u6570\u6837\u4f8b\u8bc1\u636e<\/tr>\n<tbody>\n<tr>\n<td align=\"left\">config_surface_explosion<\/td>\n<td align=\"left\">medium<\/td>\n<td align=\"left\">8<\/td>\n<td align=\"left\">tsconfig.json\u3001test\/config-schema.test.ts\u3001drizzle.config.ts\u3001tsdown.config.ts\u3001vitest.config.ts<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">state_persistence_risk<\/td>\n<td align=\"left\">low<\/td>\n<td align=\"left\">1<\/td>\n<td align=\"left\">src\/cliState.ts<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">license_mixing_or_incompatibility<\/td>\n<td align=\"left\">low<\/td>\n<td align=\"left\">1<\/td>\n<td align=\"left\">LICENSE<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u201c\u914d\u7f6e\u9762\u7206\u70b8\u201d\u7684\u5de5\u7a0b\u542b\u4e49\u662f\u7cbe\u786e\u7684&#xff1a;Promptfoo\u540c\u65f6\u627f\u8f7d\u4e86\u56db\u5957\u72ec\u7acb\u7684\u914d\u7f6e\u7cfb\u7edf&#xff1a;<\/p>\n<ul>\n<li>TypeScript\u914d\u7f6e&#xff08;tsconfig.json&#xff09;&#xff1a;\u7c7b\u578b\u68c0\u67e5<\/li>\n<li>Drizzle ORM\u914d\u7f6e&#xff08;drizzle.config.ts&#xff09;&#xff1a;\u6570\u636e\u5e93schema\u548c\u8fc1\u79fb<\/li>\n<li>tsdown\u914d\u7f6e&#xff08;tsdown.config.ts&#xff09;&#xff1a;\u6253\u5305\u6784\u5efa<\/li>\n<li>Vitest\u914d\u7f6e&#xff08;vitest.config.ts&#xff09;&#xff1a;\u6d4b\u8bd5\u6846\u67b6<\/li>\n<\/ul>\n<p>\u800ctest\/config-schema.test.ts\u7684\u5b58\u5728\u63ed\u793a\u4e86\u66f4\u6df1\u4e00\u5c42\u7684\u8bbe\u8ba1&#xff1a;\u914d\u7f6e\u672c\u8eab\u88ab\u5f53\u4f5c\u88ab\u8bc4\u6d4b\u5bf9\u8c61&#xff08;\u81ea\u6821\u9a8cschema&#xff09; \u3002Promptfoo\u4f7f\u7528Zod\u8fdb\u884c\u914d\u7f6e\u9a8c\u8bc1&#xff0c;\u5e76\u5199\u4e86\u4e00\u4e2a\u4e13\u95e8\u7684\u6d4b\u8bd5\u6587\u4ef6\u6765\u9a8c\u8bc1\u914d\u7f6eschema\u7684\u6b63\u786e\u6027\u3002\u8fd9\u662f\u201c\u914d\u7f6e\u5373\u5951\u7ea6\u201d\u7684\u5de5\u7a0b\u5b9e\u8df5\u2014\u2014\u914d\u7f6e\u4e0d\u662f\u968f\u4fbf\u5199\u7684YAML&#xff0c;\u800c\u662f\u6709\u7c7b\u578b\u3001\u6709\u9a8c\u8bc1\u3001\u6709\u6d4b\u8bd5\u7684\u5951\u7ea6\u3002<\/p>\n<h3>\u4e8c\u3001\u8bc4\u4f30\u5f15\u64ce\u67b6\u6784&#xff1a;\u4ece\u914d\u7f6e\u5230\u5206\u6570\u7684\u5b8c\u6574\u7ba1\u7ebf<\/h3>\n<h4>2.1 \u6838\u5fc3\u6267\u884c\u6d41\u7a0b<\/h4>\n<p>Promptfoo\u7684\u8bc4\u4f30\u5f15\u64ce\u662f\u6574\u4e2a\u5de5\u5177\u7684\u6838\u5fc3\u3002\u6839\u636eDeepWiki\u7684\u67b6\u6784\u5206\u6790&#xff0c;\u5176\u6267\u884c\u7ba1\u7ebf\u662f&#xff1a;<\/p>\n<p>\u5165\u53e3\u5c42&#xff1a;evaluate()&#xff08;\u516c\u5f00API&#xff0c;src\/index.ts&#xff09;\u2192 evaluate()&#xff08;\u5185\u90e8\u5b9e\u73b0&#xff0c;src\/evaluator.ts&#xff09;\u2192 doEval()&#xff08;CLI\u5904\u7406\u5668&#xff0c;src\/node\/doEval.ts&#xff09;\u3002<\/p>\n<p>\u6838\u5fc3\u6267\u884c\u903b\u8f91&#xff1a;Evaluator\u7c7b\u63a5\u6536\u4e00\u4e2aTestSuite&#xff08;\u914d\u7f6e\u6587\u4ef6\u7684\u5b8c\u5168\u89e3\u6790\u5185\u5b58\u8868\u793a&#xff09;&#xff0c;\u6267\u884c\u4e00\u4e2a\u77e9\u9635&#xff1a;\u6bcf\u4e2a\u914d\u7f6e\u7684prompt \u00d7 \u6bcf\u4e2a\u914d\u7f6e\u7684provider \u00d7 \u6bcf\u4e2a\u6d4b\u8bd5\u7528\u4f8b&#xff08;\u53ca\u5176\u53d8\u91cf\u7ec4\u5408&#xff09;\u3002\u5bf9\u4e8e\u77e9\u9635\u4e2d\u7684\u6bcf\u4e2a\u5355\u5143\u683c&#xff0c;\u5b83\u8c03\u7528provider API\u3001\u5e94\u7528\u8f93\u51fa\u53d8\u6362\u3001\u8fd0\u884c\u6240\u6709\u65ad\u8a00&#xff0c;\u5e76\u7d2f\u79ef\u8bc4\u5206\u7684EvaluateResult\u5bf9\u8c61\u3002\u7cfb\u7edf\u8fd8\u5904\u7406\u5e76\u53d1\u63a7\u5236\u3001\u901f\u7387\u9650\u5236\u3001\u8fdb\u5ea6\u62a5\u544a\u3001\u7f13\u5b58\u3001\u6269\u5c55\u94a9\u5b50\u548c\u7ed3\u679c\u6301\u4e45\u5316\u3002<\/p>\n<p>\u5173\u952e\u6570\u636e\u7c7b\u578b&#xff1a;<\/p>\n<table>\n<tr>\u7c7b\u578b\u804c\u8d23\u5b9a\u4e49\u4f4d\u7f6e<\/tr>\n<tbody>\n<tr>\n<td align=\"left\">TestSuite<\/td>\n<td align=\"left\">\u914d\u7f6e\u6587\u4ef6\u7684\u89c4\u8303\u5316\u5185\u5b58\u5f62\u5f0f&#xff0c;\u5305\u542b\u5b9e\u4f8b\u5316\u7684provider\u3001\u5904\u7406\u540e\u7684prompt\u548c\u89c4\u8303\u5316\u7684\u6d4b\u8bd5<\/td>\n<td align=\"left\">src\/types\/index.ts:75<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">UnifiedConfig<\/td>\n<td align=\"left\">Zod\u9a8c\u8bc1\u7684\u914d\u7f6e\u7ed3\u6784&#xff0c;\u4ee3\u8868promptfooconfig.yaml<\/td>\n<td align=\"left\">src\/types\/index.ts:15<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">EvaluateResult<\/td>\n<td align=\"left\">\u5355\u6b21runEval()\u8c03\u7528\u7684\u8f93\u51fa<\/td>\n<td align=\"left\">src\/evaluator.ts:67<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>2.2 \u5e76\u53d1\u63a7\u5236\u4e0e\u901f\u7387\u9650\u5236<\/h4>\n<p>Promptfoo\u7684\u8bc4\u4f30\u5f15\u64ce\u5728\u5e76\u53d1\u63a7\u5236\u65b9\u9762\u6709\u4e00\u4e2a\u503c\u5f97\u5173\u6ce8\u7684\u5de5\u7a0b\u7ec6\u8282&#xff1a;RateLimitRegistry\u3002\u5b83\u7528\u4e8e\u9632\u6b62\u8fc7\u8f7dprovider&#xff0c;\u5e76\u652f\u6301\u81ea\u9002\u5e94\u901f\u7387\u9650\u5236\u8c03\u5ea6\u5668\u2014\u2014\u6839\u636eprovider\u7684\u901f\u7387\u9650\u5236\u548c\u54cd\u5e94\u5934\u81ea\u52a8\u8c03\u6574\u5e76\u53d1\u5ea6\u30022026\u5e741\u6708\u7684Release Notes\u4e2d\u660e\u786e\u63d0\u5230\u4e86Adaptive rate limit scheduler\u7684\u5f15\u5165\u3002<\/p>\n<p>\u8fd9\u610f\u5473\u7740&#xff1a;Promptfoo\u4e0d\u4ec5\u662f\u4e00\u4e2a\u201c\u53d1\u8d77\u8bf7\u6c42\u201d\u7684\u5de5\u5177&#xff0c;\u5b83\u8fd8\u9700\u8981\u667a\u80fd\u5730\u7ba1\u7406\u8bf7\u6c42\u8282\u594f&#xff0c;\u907f\u514d\u56e0\u4e3a\u8bc4\u6d4b\u884c\u4e3a\u672c\u8eab\u89e6\u53d1provider\u7684\u901f\u7387\u9650\u5236\u3002<\/p>\n<h4>2.3 \u7f16\u7a0b\u5f0fAPI&#xff1a;\u4eceCLI\u5230Node\u5e93\u7684\u6269\u5c55<\/h4>\n<p>Promptfoo\u7684\u6838\u5fc3\u5b9a\u4f4d\u662fCLI\u5de5\u5177&#xff0c;\u4f46\u5b83\u540c\u6837\u63d0\u4f9b\u4e86\u5b8c\u6574\u7684Node.js\u5e93API\u3002evaluate(testSuite, options?)\u662f\u7f16\u7a0b\u5f0f\u8bc4\u6d4b\u7684\u4e3b\u5165\u53e3&#xff0c;\u652f\u6301&#xff1a;<\/p>\n<ul>\n<li>\u591aprovider\u5bf9\u6bd4&#xff08;OpenAI\u3001Anthropic\u3001Azure\u3001Bedrock\u3001Vertex\u3001Cohere\u7b49&#xff09;<\/li>\n<li>\u65ad\u8a00\u72ec\u7acb\u6267\u884c<\/li>\n<li>\u7f13\u5b58\u7ba1\u7406<\/li>\n<li>\u5b89\u5168\u62a4\u680f&#xff08;PII\u3001harm\u3001moderation\u68c0\u67e5&#xff09;<\/li>\n<li>\u5bf9\u6297\u6027\u6d4b\u8bd5&#xff08;\u7ea2\u961f\u8bc4\u6d4b&#xff09;<\/li>\n<\/ul>\n<p>\u4eceCLI\u5230Node\u5e93\u7684\u6269\u5c55&#xff0c;\u610f\u5473\u7740Promptfoo\u4e0d\u4ec5\u662f\u4e00\u4e2a\u201c\u6d4b\u8bd5\u5de5\u5177\u201d&#xff0c;\u8fd8\u662f\u4e00\u4e2a\u53ef\u5d4c\u5165\u7684\u8bc4\u6d4b\u57fa\u7840\u8bbe\u65bd\u2014\u2014\u56e2\u961f\u53ef\u4ee5\u5728CI\/CD\u7ba1\u7ebf\u4e2d\u7a0b\u5e8f\u5316\u8c03\u7528\u5b83&#xff0c;\u4e5f\u53ef\u4ee5\u5728\u81ea\u5efa\u7684\u8bc4\u6d4b\u5e73\u53f0\u4e2d\u96c6\u6210\u5b83\u3002<\/p>\n<h3>\u4e09\u30012026\u5e74\u5173\u952e\u529f\u80fd\u6f14\u8fdb&#xff1a;\u4ece\u8bc4\u6d4b\u5230\u7ea2\u961f\u7684\u5168\u9762\u8986\u76d6<\/h3>\n<h4>3.1 \u7ea2\u961f\u63d2\u4ef6\u751f\u6001&#xff1a;67&#043;\u5b89\u5168\u653b\u51fb\u63d2\u4ef6<\/h4>\n<p>Promptfoo\u7684\u7ea2\u961f\u6d4b\u8bd5\u80fd\u529b\u662f\u5176\u6838\u5fc3\u7ade\u4e89\u529b\u4e4b\u4e00\u3002\u622a\u81f32026\u5e743\u6708&#xff0c;\u5b83\u5df2\u62e5\u670967&#043;\u5b89\u5168\u653b\u51fb\u63d2\u4ef6&#xff0c;\u8986\u76d6\u63d0\u793a\u6ce8\u5165\u3001\u8d8a\u72f1\u3001\u6570\u636e\u6cc4\u9732\u3001\u8fc7\u5ea6\u4ee3\u7406\u7b49\u653b\u51fb\u7c7b\u578b\u30022026\u5e741\u6708\u65b0\u589e\u4e86Telecom\u7ea2\u961f\u63d2\u4ef6&#xff08;\u7535\u4fe1\u884c\u4e1a\u7279\u5b9a&#xff09;\u548cRAG Source Attribution\u63d2\u4ef6&#xff08;\u6d4b\u8bd5RAG\u7cfb\u7edf\u662f\u5426\u6b63\u786e\u6807\u6ce8\u6765\u6e90&#xff09;\u3002<\/p>\n<h4>3.2 \u591a\u8f93\u5165\u6d4b\u8bd5&#xff1a;\u652f\u6301\u590d\u6742\u8f93\u5165\u7ed3\u6784<\/h4>\n<p>\u7ea2\u961f\u626b\u63cf\u73b0\u5728\u652f\u6301\u591a\u4e2a\u8f93\u5165\u53d8\u91cf&#xff0c;\u5141\u8bb8\u6d4b\u8bd5\u5177\u6709\u590d\u6742\u8f93\u5165\u7ed3\u6784\u7684\u7cfb\u7edf\u3002\u8fd9\u662f\u4e00\u4e2a\u91cd\u8981\u7684\u80fd\u529b\u6269\u5c55\u2014\u2014\u771f\u5b9e\u4e16\u754c\u7684LLM\u5e94\u7528\u5f88\u5c11\u53ea\u63a5\u53d7\u5355\u4e00\u6587\u672c\u8f93\u5165&#xff0c;\u901a\u5e38\u9700\u8981\u5904\u7406\u7ed3\u6784\u5316\u6570\u636e\u3001\u6587\u4ef6\u4e0a\u4f20\u6216\u591a\u8f6e\u5bf9\u8bdd\u4e0a\u4e0b\u6587\u3002<\/p>\n<h4>3.3 Transformers.js\u672c\u5730\u63a8\u7406<\/h4>\n<p>2026\u5e741\u6708&#xff0c;Promptfoo\u5f15\u5165\u4e86Transformers.js\u4f5c\u4e3aprovider&#xff0c;\u5141\u8bb8\u5728Node.js\u6216\u6d4f\u89c8\u5668\u4e2d\u672c\u5730\u8fd0\u884c\u6a21\u578b&#xff0c;\u65e0\u9700\u5916\u90e8API\u8c03\u7528\u3002\u8fd9\u5bf9\u4e8e\u9690\u79c1\u654f\u611f\u573a\u666f&#xff08;\u5982\u533b\u7597\u3001\u91d1\u878d&#xff09;\u7684\u8bc4\u6d4b\u81f3\u5173\u91cd\u8981\u2014\u2014\u8bc4\u6d4b\u6570\u636e\u4e0d\u51fa\u672c\u5730\u73af\u5883\u3002<\/p>\n<h4>3.4 \u4ee3\u7801\u626b\u63cf\u4e0eCI\/CD\u96c6\u6210<\/h4>\n<p>Promptfoo\u63d0\u4f9b\u4e86\u5b8c\u6574\u7684CI\/CD\u96c6\u6210\u80fd\u529b&#xff0c;\u652f\u6301\u4e24\u79cd\u5de5\u4f5c\u6d41&#xff1a;\u8bc4\u4f30&#xff08;Eval&#xff09; \u548c\u7ea2\u961f\u626b\u63cf&#xff08;Red Teaming&#xff09; \u30022026\u5e741\u6708\u7684\u66f4\u65b0\u5305\u62ecFork PR\u652f\u6301\u548cPR\u8bc4\u8bba\u89e6\u53d1\u626b\u63cf&#xff0c;\u8fd9\u610f\u5473\u7740Promptfoo\u53ef\u4ee5\u5728GitHub Pull Request\u4e2d\u81ea\u52a8\u8fd0\u884c\u5b89\u5168\u626b\u63cf\u5e76\u53d1\u5e03\u7ed3\u679c\u3002<\/p>\n<h4>3.5 \u89c6\u9891\u751f\u6210Provider<\/h4>\n<p>2026\u5e741\u6708\u65b0\u589e\u4e86AWS Bedrock Video&#xff08;Nova Reel\u548cLuma Ray 2&#xff09;\u548cAzure AI Foundry Video&#xff08;Sora&#xff09;provider&#xff0c;\u5c06\u8bc4\u6d4b\u80fd\u529b\u4ece\u6587\u672c\u6269\u5c55\u5230\u4e86\u89c6\u9891\u751f\u6210\u9886\u57df\u3002<\/p>\n<h3>\u56db\u3001\u5b89\u5168\u8fb9\u754c&#xff1a;\u4e00\u4e2a\u7ea2\u961f\u5de5\u5177\u5982\u4f55\u7ea2\u961f\u81ea\u5df1<\/h3>\n<h4>4.1 CVE-2026-22036&#xff1a;undici\u65e0\u9650\u5236\u89e3\u538b\u94fe\u6f0f\u6d1e<\/h4>\n<p>2026\u5e741\u670820\u65e5&#xff0c;Promptfoo\u5408\u5e76\u4e86\u4e00\u4e2a\u5b89\u5168\u4fee\u590dPR&#xff08;#7130&#xff09;&#xff0c;\u5c06undici\u4f9d\u8d56\u4ece5.29.0\u5347\u7ea7\u52306.23.0&#xff0c;\u4ee5\u4fee\u590dCVE-2026-22036\u2014\u2014\u4e00\u4e2a\u65e0\u9650\u5236\u89e3\u538b\u94fe\u6f0f\u6d1e\u3002<\/p>\n<p>\u6f0f\u6d1e\u7684\u6839\u56e0\u662f&#064;actions\/github\u548c&#064;actions\/http-client\u5305\u6307\u5b9a\u4e86undici&#064;^5.28.5&#xff0c;\u4f46\u5b89\u5168\u4fee\u590d\u4ec5\u5b58\u5728\u4e8e6.23.0&#043;\u7248\u672c\u3002\u7531\u4e8e\u4e0a\u6e38\u5305\u6ca1\u6709\u66f4\u65b0\u4f9d\u8d56\u8303\u56f4&#xff0c;Promptfoo\u56e2\u961f\u6dfb\u52a0\u4e86npm override\u6765\u5f3a\u5236\u4f7f\u7528\u5b89\u5168\u7248\u672c\u3002<\/p>\n<p>\u8fd9\u4e2a\u7ec6\u8282\u7684\u5de5\u7a0b\u542b\u4e49\u662f\u6df1\u8fdc\u7684&#xff1a;Promptfoo\u7684\u4ee3\u7801\u626b\u63cf\u529f\u80fd&#xff08;code-scan-action&#xff09;\u4f9d\u8d56\u4e8eGitHub Actions\u7684\u5b98\u65b9\u5305&#xff0c;\u800c\u8fd9\u4e9b\u5b98\u65b9\u5305\u7684\u4f9d\u8d56\u7248\u672c\u53ef\u80fd\u6ede\u540e\u4e8e\u5b89\u5168\u4fee\u590d\u3002\u4e00\u4e2a\u7528\u4e8e\u7ea2\u961f\u6d4b\u8bd5\u7684\u5de5\u5177&#xff0c;\u5176\u81ea\u8eab\u4f9d\u8d56\u94fe\u7684\u5b89\u5168\u7ef4\u62a4\u540c\u6837\u9700\u8981\u88ab\u7ea2\u961f\u3002<\/p>\n<h4>4.2 \u4fe1\u606f\u66b4\u9732\u6f0f\u6d1e&#xff1a;\u914d\u7f6e\u8bbe\u7f6e\u4e0d\u4e00\u81f4<\/h4>\n<p>Snyk\u6570\u636e\u5e93\u8fd8\u62ab\u9732\u4e86\u4e00\u4e2a\u4fe1\u606f\u66b4\u9732\u6f0f\u6d1e&#xff08;Snyk ID: SNYK-PYTHON-PROMPTFOO-15202495&#xff09;&#xff0c;CVSS\u8bc4\u52066.9&#xff08;medium&#xff09;\u3002<\/p>\n<p>\u6f0f\u6d1e\u7684\u6839\u56e0\u662fexcludeTargetOutputFromAgenticAttackGeneration\u8bbe\u7f6e\u672a\u88ab\u4e00\u81f4\u5730\u6267\u884c\u3002\u5f53\u8be5\u8bbe\u7f6e\u88ab\u542f\u7528\u65f6&#xff0c;\u76ee\u6807\u8f93\u51fa\u5e94\u8be5\u4ece\u653b\u51fb\u751f\u6210\u4e2d\u6392\u9664&#xff0c;\u4f46\u67d0\u4e9b\u4ee3\u7801\u8def\u5f84\u6ca1\u6709\u6b63\u786e\u9075\u5b88\u8fd9\u4e2a\u914d\u7f6e\u3002\u653b\u51fb\u8005\u53ef\u4ee5\u5229\u7528\u8fd9\u4e2a\u6f0f\u6d1e\u83b7\u53d6\u5173\u4e8e\u76ee\u6807\u8f93\u51fa\u7684\u654f\u611f\u4fe1\u606f\u3002<\/p>\n<p>\u4fee\u590d\u7248\u672c&#xff1a;Python wrapper\u76840.1.1\u53ca\u4ee5\u4e0a\u7248\u672c\u3002<\/p>\n<h4>4.3 \u5b89\u5168\u7b56\u7565\u7684\u6301\u7eed\u6539\u8fdb<\/h4>\n<p>Promptfoo\u57282026\u5e743\u6708\u66f4\u65b0\u4e86\u5176\u5b89\u5168\u7b56\u7565&#xff0c;\u660e\u786e\u4e86\u54cd\u5e94\u65f6\u95f4\u7ebf\u3001CVE\u6807\u51c6\u548c\u5b89\u5168\u6e2f\u6761\u6b3e\u3002\u7b56\u7565\u4e2d\u660e\u786e\u533a\u5206\u4e86\u4e0d\u540c\u4e25\u91cd\u5ea6\u7684\u6f0f\u6d1e&#xff1a;CSRF\u7ed5\u8fc7\u5bfc\u81f4\u4efb\u610f\u547d\u4ee4\u6267\u884c\u6216\u6587\u4ef6\u5199\u5165&#xff08;\u901a\u8fc7\u672c\u5730\u670d\u52a1\u5668&#xff09;\u88ab\u5f52\u7c7b\u4e3a\u9700\u8981CVE\u7684\u9ad8\u5371\u6f0f\u6d1e&#xff0c;\u800cWeb UI XSS\u9700\u8981\u6545\u610f\u7528\u6237\u4ea4\u4e92&#xff08;\u5982self-XSS&#xff09;\u901a\u5e38\u88ab\u5f52\u7c7b\u4e3aLow\u6216\u65e0CVE\u3002<\/p>\n<p>\u8fd9\u79cd\u201c\u660e\u786e\u5206\u7ea7\u201d\u7684\u5b89\u5168\u7b56\u7565\u672c\u8eab\u5c31\u662f\u4e00\u4e2a\u79ef\u6781\u7684\u5de5\u7a0b\u4fe1\u53f7\u2014\u2014\u5b83\u8868\u660e\u56e2\u961f\u5728\u7cfb\u7edf\u6027\u5730\u7ba1\u7406\u5b89\u5168\u6f0f\u6d1e\u7684\u62ab\u9732\u548c\u4fee\u590d\u6d41\u7a0b\u3002<\/p>\n<h3>\u4e94\u3001\u56db\u7ef4\u6cbb\u7406\u57fa\u56e0&#xff1a;4\/4\u5168\u89c2\u6d4b\u7684\u5ba1\u614e\u89e3\u8bfb<\/h3>\n<table>\n<tr>\u57fa\u56e0\u7ef4\u5ea6\u89c2\u5bdf\u72b6\u6001\u8bc1\u636e\u8fb9\u754c<\/tr>\n<tbody>\n<tr>\n<td align=\"left\">modularity<\/td>\n<td align=\"left\">\u5df2\u89c2\u6d4b<\/td>\n<td align=\"left\">30\u4e2a\u6a21\u5757\u6839&#xff0c;\u4f46\u6838\u5fc3\u8bc4\u4f30\u903b\u8f91\u96c6\u4e2d\u5728src\/evaluator.ts\u548csrc\/node\/doEval.ts<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">testability<\/td>\n<td align=\"left\">\u5df2\u89c2\u6d4b<\/td>\n<td align=\"left\">7\u4e2a\u6d4b\u8bd5\u6587\u4ef6\u547d\u4e2d&#xff0c;\u5305\u542bconfig-schema.test.ts<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">delivery_automation<\/td>\n<td align=\"left\">\u5df2\u89c2\u6d4b<\/td>\n<td align=\"left\">3\u4e2aCI\u5de5\u4f5c\u6d41\u6587\u4ef6\u5b58\u5728<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">supply_chain_traceability<\/td>\n<td align=\"left\">\u5df2\u89c2\u6d4b<\/td>\n<td align=\"left\">package.json\u3001Dockerfile\u7b49\u6784\u5efa\u6587\u4ef6\u9f50\u5168<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>4\/4\u5168\u89c2\u6d4b\u8861\u91cf\u7684\u662f\u201c\u4fe1\u53f7\u662f\u5426\u5b58\u5728\u201d&#xff0c;\u800c\u975e\u201c\u8d28\u91cf\u662f\u5426\u8fbe\u6807\u201d\u3002 7\u4e2a\u6d4b\u8bd5\u6587\u4ef6\u5bf9\u5e945,566\u4e2a\u6811\u6587\u4ef6&#xff0c;\u8986\u76d6\u7387\u9700\u8981\u5b9e\u9645\u6267\u884c\u9a8c\u8bc1\u3002\u4f46test\/config-schema.test.ts\u7684\u5b58\u5728\u662f\u4e00\u4e2a\u79ef\u6781\u7684\u4fe1\u53f7\u2014\u2014\u914d\u7f6eschema\u88ab\u5f53\u4f5c\u7b2c\u4e00\u7c7b\u5de5\u7a0b\u8d44\u4ea7\u6765\u5bf9\u5f85\u3002<\/p>\n<h3>\u516d\u3001\u7ed9\u6280\u672f\u8d1f\u8d23\u4eba\u7684\u4e09\u5468\u9a8c\u8bc1\u6e05\u5355<\/h3>\n<p>\u7b2c\u4e00\u5468&#xff1a;\u73af\u5883\u4e0e\u6700\u5c0f\u8bc4\u6d4b<\/p>\n<ul>\n<li>\u7528npm install -g promptfoo\u5b89\u88c5&#xff0c;\u6267\u884cpromptfoo init &#8211;example getting-started\u521d\u59cb\u5316<\/li>\n<li>\u8fd0\u884c\u4e00\u4e2a\u6700\u5c0f\u8bc4\u6d4b&#xff1a;\u5bf9\u540c\u4e00\u4e2aprompt\u5728\u4e24\u4e2aprovider&#xff08;\u5982GPT-5.5\u548cClaude Opus 4.7&#xff09;\u4e0a\u5bf9\u6bd4\u8f93\u51fa<\/li>\n<li>\u8bb0\u5f55\u8bc4\u6d4b\u8017\u65f6\u3001token\u6d88\u8017\u548c\u7f13\u5b58\u547d\u4e2d\u60c5\u51b5<\/li>\n<\/ul>\n<p>\u7b2c\u4e8c\u5468&#xff1a;\u6838\u5fc3\u529f\u80fd\u4e0e\u5b89\u5168\u9a8c\u8bc1<\/p>\n<ul>\n<li>\u6d4b\u8bd5\u7ea2\u961f\u626b\u63cf&#xff1a;\u8fd0\u884cpromptfoo redteam run&#xff0c;\u9a8c\u8bc167&#043;\u63d2\u4ef6\u662f\u5426\u6309\u9884\u671f\u5de5\u4f5c<\/li>\n<li>\u6d4b\u8bd5\u914d\u7f6eschema&#xff1a;\u4fee\u6539promptfooconfig.yaml\u4e2d\u7684\u65e0\u6548\u5b57\u6bb5&#xff0c;\u9a8c\u8bc1Zod\u9a8c\u8bc1\u662f\u5426\u6b63\u786e\u62e6\u622a<\/li>\n<li>\u91cd\u70b9\u9a8c\u8bc1excludeTargetOutputFromAgenticAttackGeneration\u8bbe\u7f6e&#xff1a;\u786e\u8ba4\u5728\u7ea2\u961f\u626b\u63cf\u4e2d&#xff0c;\u76ee\u6807\u8f93\u51fa\u662f\u5426\u6b63\u786e\u4ece\u653b\u51fb\u751f\u6210\u4e2d\u6392\u9664<\/li>\n<li>\u6d4b\u8bd5CI\/CD\u96c6\u6210&#xff1a;\u5728GitHub Actions\u4e2d\u914d\u7f6ePromptfoo\u626b\u63cf&#xff0c;\u9a8c\u8bc1PR\u8bc4\u8bba\u89e6\u53d1\u662f\u5426\u6b63\u5e38\u5de5\u4f5c<\/li>\n<\/ul>\n<p>\u7b2c\u4e09\u5468&#xff1a;\u751f\u4ea7\u5c31\u7eea\u8bc4\u4f30<\/p>\n<ul>\n<li>\u786e\u8ba4\u7248\u672c\u22650.123.0&#xff08;\u4ee5\u5305\u542bCVE-2026-22036\u4fee\u590d&#xff09;<\/li>\n<li>\u8bc4\u4f30\u914d\u7f6e\u9762\u590d\u6742\u5ea6&#xff1a;\u786e\u8ba4\u56e2\u961f\u662f\u5426\u80fd\u7ba1\u7406tsconfig &#043; drizzle &#043; tsdown &#043; vitest &#043; Zod\u7684\u4e94\u5c42\u914d\u7f6e<\/li>\n<li>\u5ba1\u8ba1\u4f9d\u8d56\u5b89\u5168&#xff1a;\u5bf9package.json\u4e2d\u7684\u7b2c\u4e09\u65b9\u4f9d\u8d56\u505a\u6f0f\u6d1e\u626b\u63cf&#xff0c;\u7279\u522b\u5173\u6ce8undici\u3001&#064;actions\/github\u7b49\u4f20\u9012\u4f9d\u8d56<\/li>\n<li>\u786e\u8ba4\u72b6\u6001\u9694\u79bb&#xff1a;\u5982\u679c\u4f7f\u7528cliState.ts\u7684\u672c\u5730\u72b6\u6001&#xff0c;\u8bc4\u4f30\u5728CI\/CD\u591a\u73af\u5883\u4e2d\u7684\u9694\u79bb\u7b56\u7565<\/li>\n<\/ul>\n<h3>\u4e03\u3001\u7ed3\u8bed<\/h3>\n<p>Promptfoo\u75285,566\u4e2aTypeScript\u6587\u4ef6\u300167&#043;\u7ea2\u961f\u63d2\u4ef6\u548c8\/8\u5168PASS\u7684\u9759\u6001\u8bc1\u636e&#xff0c;\u6784\u5efa\u4e86LLM\u8bc4\u6d4b\u4e0e\u7ea2\u961f\u6d4b\u8bd5\u7684\u4e8b\u5b9e\u6807\u51c6\u30022026\u5e743\u6708\u52a0\u5165OpenAI\u540e&#xff0c;\u5b83\u7684\u751f\u6001\u4f4d\u8fdb\u4e00\u6b65\u5de9\u56fa\u2014\u2014\u88abOpenAI\u548cAnthropic\u7528\u4e8e\u751f\u4ea7\u73af\u5883\u7684LLM\u6d4b\u8bd5&#xff0c;52.4\u4e07\u5468\u4e0b\u8f7d\u91cf\u8bc1\u660e\u4e86\u5b83\u7684\u5de5\u7a0b\u4ef7\u503c\u3002<\/p>\n<p>\u201c\u914d\u7f6e\u9762\u7206\u70b8\u201d\u7684elevated\u4fe1\u53f7\u662f\u4e00\u4e2a\u9700\u8981\u6b63\u89c6\u7684\u8fb9\u754c\u3002 \u56db\u5957\u72ec\u7acb\u7684\u914d\u7f6e\u7cfb\u7edf&#xff08;TypeScript &#043; Drizzle &#043; tsdown &#043; Vitest&#xff09;\u52a0\u4e0aZod schema\u9a8c\u8bc1&#xff0c;\u610f\u5473\u7740Promptfoo\u7684\u914d\u7f6e\u7ba1\u7406\u590d\u6742\u5ea6\u4e0d\u5bb9\u5c0f\u89d1\u3002test\/config-schema.test.ts\u7684\u5b58\u5728\u8868\u660e\u56e2\u961f\u610f\u8bc6\u5230\u4e86\u8fd9\u4e2a\u95ee\u9898\u5e76\u5efa\u7acb\u4e86\u81ea\u6821\u9a8c\u673a\u5236\u2014\u2014\u914d\u7f6e\u672c\u8eab\u88ab\u5f53\u4f5c\u88ab\u8bc4\u6d4b\u5bf9\u8c61&#xff0c;\u8fd9\u662f\u201c\u914d\u7f6e\u5373\u5951\u7ea6\u201d\u7684\u5de5\u7a0b\u5b9e\u8df5\u3002<\/p>\n<p>\u4f46\u771f\u6b63\u88ab\u4f4e\u4f30\u7684\u62a4\u57ce\u6cb3&#xff0c;\u662fPromptfoo\u7ecf\u8fc7\u5927\u91cf\u771f\u5b9e\u9879\u76ee\u9a8c\u8bc1\u7684\u201c\u8bc4\u6d4b\u8bca\u65ad\u903b\u8f91\u201d\u3002 5,566\u4e2a\u6587\u4ef6\u4e2d&#xff0c;\u54ea\u4e9b\u65ad\u8a00\u7ec4\u5408\u80fd\u6709\u6548\u68c0\u6d4b\u5e7b\u89c9&#xff1f;\u54ea\u4e9b\u7ea2\u961f\u7b56\u7565\u80fd\u7ed5\u8fc7\u771f\u5b9e\u7684\u62a4\u680f&#xff1f;\u54ea\u4e9bprovider\u7684\u54cd\u5e94\u6a21\u5f0f\u9700\u8981\u7279\u6b8a\u7684\u5e76\u53d1\u63a7\u5236&#xff1f;\u8fd9\u4e9b\u95ee\u9898\u4e0d\u662f\u9760\u590d\u5236\u51e0\u884cYAML\u914d\u7f6e\u80fd\u89e3\u51b3\u7684&#xff0c;\u800c\u662f\u9700\u8981\u8de8\u9879\u76ee\u79ef\u7d2f\u7684\u9690\u6027\u77e5\u8bc6\u3002CVE-2026-22036\u7684\u4fee\u590d\u548cexcludeTargetOutputFromAgenticAttackGeneration\u6f0f\u6d1e\u7684\u62ab\u9732\u63d0\u9192\u6211\u4eec&#xff1a;\u4e00\u4e2a\u7ea2\u961f\u5de5\u5177&#xff0c;\u9996\u5148\u9700\u8981\u7ea2\u961f\u81ea\u5df1\u3002<\/p>\n<p>\u7248\u6743\u58f0\u660e&#xff1a;\u672c\u6587\u4e3aValhalla Matrix\u6cbb\u7406\u5b9e\u9a8c\u5ba4\u539f\u521b\u3002\u6b22\u8fce\u8f6c\u8f7d&#xff0c;\u8bf7\u6ce8\u660e\u51fa\u5904\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>L3\u5f00\u6e90\u8bc4\u6d4b&#xff5c;Promptfoo &#xff1a;\u914d\u7f6e\u5373\u5951\u7ea6&#xff0c;\u4e00\u4e2a\u201c\u8bc4\u6d4b\u5de5\u5177\u201d\u5982\u4f55\u5148\u8bc4\u6d4b\u81ea\u5df1\u8bc4\u6d4b\u7f16\u53f7&#xff1a;L3-OSB-20260922-04<br \/>\n\u8bc4\u6d4b\u5bf9\u8c61&#xff1a;promptfoo\/promptfoo  93b2b18f<br \/>\n\u9879\u76ee\u5b9a\u4f4d&#xff1a;LLM\u7ea2\u961f\u6d4b\u8bd5\u4e0e\u63d0\u793a\u8bcd\u81ea\u52a8\u8bc4\u6d4b\u5de5\u5177&#xff08;CLI  Node.js\u5e93&#xff09;<br \/>\n\u6570\u636e\u6307\u6807&#xff1a;5,566\u4e2a\u6811\u6587\u4ef6 | 30\u4e2a\u9650\u5b9a\u68c0\u51fa | 8\/8\u68c0\u67e5\u9879\u5168PASS | <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[12732,12731,12180,2153,227],"topic":[],"class_list":["post-111932","post","type-post","status-publish","format-standard","hentry","category-server","tag-llm-","tag-promptfoo","tag-valhalla-matrix","tag-openai","tag-227"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>L3\u5f00\u6e90\u8bc4\u6d4b\uff5cPromptfoo \uff1a\u914d\u7f6e\u5373\u5951\u7ea6\uff0c\u4e00\u4e2a\u201c\u8bc4\u6d4b\u5de5\u5177\u201d\u5982\u4f55\u5148\u8bc4\u6d4b\u81ea\u5df1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/111932.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"L3\u5f00\u6e90\u8bc4\u6d4b\uff5cPromptfoo \uff1a\u914d\u7f6e\u5373\u5951\u7ea6\uff0c\u4e00\u4e2a\u201c\u8bc4\u6d4b\u5de5\u5177\u201d\u5982\u4f55\u5148\u8bc4\u6d4b\u81ea\u5df1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"L3\u5f00\u6e90\u8bc4\u6d4b&#xff5c;Promptfoo &#xff1a;\u914d\u7f6e\u5373\u5951\u7ea6&#xff0c;\u4e00\u4e2a\u201c\u8bc4\u6d4b\u5de5\u5177\u201d\u5982\u4f55\u5148\u8bc4\u6d4b\u81ea\u5df1\u8bc4\u6d4b\u7f16\u53f7&#xff1a;L3-OSB-20260922-04 \u8bc4\u6d4b\u5bf9\u8c61&#xff1a;promptfoo\/promptfoo 93b2b18f \u9879\u76ee\u5b9a\u4f4d&#xff1a;LLM\u7ea2\u961f\u6d4b\u8bd5\u4e0e\u63d0\u793a\u8bcd\u81ea\u52a8\u8bc4\u6d4b\u5de5\u5177&#xff08;CLI Node.js\u5e93&#xff09; \u6570\u636e\u6307\u6807&#xff1a;5,566\u4e2a\u6811\u6587\u4ef6 | 30\u4e2a\u9650\u5b9a\u68c0\u51fa | 8\/8\u68c0\u67e5\u9879\u5168PASS |\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/111932.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-02T00:40:46+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/111932.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/111932.html\",\"name\":\"L3\u5f00\u6e90\u8bc4\u6d4b\uff5cPromptfoo \uff1a\u914d\u7f6e\u5373\u5951\u7ea6\uff0c\u4e00\u4e2a\u201c\u8bc4\u6d4b\u5de5\u5177\u201d\u5982\u4f55\u5148\u8bc4\u6d4b\u81ea\u5df1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-02T00:40:46+00:00\",\"dateModified\":\"2026-10-02T00:40:46+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/111932.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/111932.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/111932.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"L3\u5f00\u6e90\u8bc4\u6d4b\uff5cPromptfoo \uff1a\u914d\u7f6e\u5373\u5951\u7ea6\uff0c\u4e00\u4e2a\u201c\u8bc4\u6d4b\u5de5\u5177\u201d\u5982\u4f55\u5148\u8bc4\u6d4b\u81ea\u5df1\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"L3\u5f00\u6e90\u8bc4\u6d4b\uff5cPromptfoo \uff1a\u914d\u7f6e\u5373\u5951\u7ea6\uff0c\u4e00\u4e2a\u201c\u8bc4\u6d4b\u5de5\u5177\u201d\u5982\u4f55\u5148\u8bc4\u6d4b\u81ea\u5df1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/111932.html","og_locale":"zh_CN","og_type":"article","og_title":"L3\u5f00\u6e90\u8bc4\u6d4b\uff5cPromptfoo \uff1a\u914d\u7f6e\u5373\u5951\u7ea6\uff0c\u4e00\u4e2a\u201c\u8bc4\u6d4b\u5de5\u5177\u201d\u5982\u4f55\u5148\u8bc4\u6d4b\u81ea\u5df1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"L3\u5f00\u6e90\u8bc4\u6d4b&#xff5c;Promptfoo &#xff1a;\u914d\u7f6e\u5373\u5951\u7ea6&#xff0c;\u4e00\u4e2a\u201c\u8bc4\u6d4b\u5de5\u5177\u201d\u5982\u4f55\u5148\u8bc4\u6d4b\u81ea\u5df1\u8bc4\u6d4b\u7f16\u53f7&#xff1a;L3-OSB-20260922-04 \u8bc4\u6d4b\u5bf9\u8c61&#xff1a;promptfoo\/promptfoo 93b2b18f \u9879\u76ee\u5b9a\u4f4d&#xff1a;LLM\u7ea2\u961f\u6d4b\u8bd5\u4e0e\u63d0\u793a\u8bcd\u81ea\u52a8\u8bc4\u6d4b\u5de5\u5177&#xff08;CLI Node.js\u5e93&#xff09; \u6570\u636e\u6307\u6807&#xff1a;5,566\u4e2a\u6811\u6587\u4ef6 | 30\u4e2a\u9650\u5b9a\u68c0\u51fa | 8\/8\u68c0\u67e5\u9879\u5168PASS |","og_url":"https:\/\/www.wsisp.com\/helps\/111932.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-02T00:40:46+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/111932.html","url":"https:\/\/www.wsisp.com\/helps\/111932.html","name":"L3\u5f00\u6e90\u8bc4\u6d4b\uff5cPromptfoo \uff1a\u914d\u7f6e\u5373\u5951\u7ea6\uff0c\u4e00\u4e2a\u201c\u8bc4\u6d4b\u5de5\u5177\u201d\u5982\u4f55\u5148\u8bc4\u6d4b\u81ea\u5df1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-02T00:40:46+00:00","dateModified":"2026-10-02T00:40:46+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/111932.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/111932.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/111932.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"L3\u5f00\u6e90\u8bc4\u6d4b\uff5cPromptfoo \uff1a\u914d\u7f6e\u5373\u5951\u7ea6\uff0c\u4e00\u4e2a\u201c\u8bc4\u6d4b\u5de5\u5177\u201d\u5982\u4f55\u5148\u8bc4\u6d4b\u81ea\u5df1"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/111932","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=111932"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/111932\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=111932"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=111932"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=111932"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=111932"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}