feat: ValueMatcher 支持 primitive 原始值简写,等价于 { equals: value }
This commit is contained in:
@@ -139,8 +139,7 @@ targets:
|
||||
url: "${sqlite_url}"
|
||||
query: "SELECT 1 as id, 'Alice' as name, 'engineer' as role"
|
||||
expect:
|
||||
rowCount:
|
||||
equals: 1
|
||||
rowCount: 1
|
||||
rows:
|
||||
- id:
|
||||
gte: 1
|
||||
@@ -249,37 +248,13 @@ targets:
|
||||
group: "AI 服务"
|
||||
llm:
|
||||
provider: openai
|
||||
url: "https://api.openai.com/v1"
|
||||
model: "gpt-4o-mini"
|
||||
url: "https://open.bigmodel.cn/api/paas/v4"
|
||||
model: "glm-4.7-flash"
|
||||
prompt: "Say OK"
|
||||
key: "${OPENAI_API_KEY}"
|
||||
key: "d1e97306540d12bb2f834be961fcacb1.SNBShlCxWYJCx0qZ"
|
||||
expect:
|
||||
status:
|
||||
- 200
|
||||
finishReason:
|
||||
equals: "stop"
|
||||
finishReason: "stop"
|
||||
output:
|
||||
- contains: "OK"
|
||||
|
||||
- id: "llm-anthropic-stream-probe"
|
||||
name: "Anthropic 流式健康检查"
|
||||
type: llm
|
||||
group: "AI 服务"
|
||||
llm:
|
||||
provider: anthropic
|
||||
url: "https://api.anthropic.com/v1"
|
||||
model: "claude-3-5-haiku-20241022"
|
||||
prompt: "Say OK"
|
||||
key: "${ANTHROPIC_API_KEY}"
|
||||
mode: stream
|
||||
expect:
|
||||
status:
|
||||
- 200
|
||||
stream:
|
||||
completed: true
|
||||
firstTokenMs:
|
||||
lte: 5000
|
||||
finishReason:
|
||||
equals: "stop"
|
||||
durationMs:
|
||||
lte: 15000
|
||||
|
||||
Reference in New Issue
Block a user