测试
使用promptfoo运行脚本中的测试。
npx genaiscript test "<scripts...>"您可以通过--models参数来覆盖测试中使用的模型:
npx genaiscript test "<scripts...>" --models openai:gpt-4 ollama:phi3结果查看器
运行test view命令以启动测试结果查看器:
npx genaiscript test view使用promptfoo运行脚本中的测试。
npx genaiscript test "<scripts...>"您可以通过--models参数来覆盖测试中使用的模型:
npx genaiscript test "<scripts...>" --models openai:gpt-4 ollama:phi3运行test view命令以启动测试结果查看器:
npx genaiscript test view