| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- {
- "version": 1,
- "caseName": "conversation-session-same-model-provider-identity",
- "spec": "./test/e2e/conversation-session/models/conversation-session-same-model-provider-identity.test.ts",
- "fixtures": [
- {
- "id": "same-model-provider-identity-title",
- "description": "跨 provider 模型切换 case 内的标题生成固定响应,避免严格 case-local replay 依赖 legacy provider-basic。",
- "metadata": {
- "kind": "common",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "标题生成不是本 case 的产品语义,只需要稳定返回,防止标题请求误命中首发业务 fixture。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["Generate a concise title"]
- },
- "response": {
- "statusCode": 200,
- "statusMessage": "OK",
- "headers": {
- "content-type": "application/json; charset=utf-8"
- },
- "body": "{\"id\":\"upstream-e2e-same-model-provider-identity-title\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"{\\\"title\\\":\\\"Provider Identity\\\"}\"}],\"stop_reason\":\"end_turn\",\"stop_sequence\":null,\"usage\":{\"input_tokens\":125,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":24,\"service_tier\":\"standard\"}}"
- }
- },
- {
- "id": "same-model-provider-identity-main",
- "description": "I13 alternate provider 下 deepseek-v4-pro 首发普通文本的固定最终回复。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "核心断言在 alternate provider currentValue 身份保留、请求 body model=deepseek-v4-pro 和 UI 回复;响应只需稳定完成并包含约定文本。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["E2E_SAME_MODEL_PROVIDER_IDENTITY"],
- "bodyIncludes": ["E2E_SAME_MODEL_PROVIDER_IDENTITY", "upstream-e2e-ok"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "statusMessage": "OK",
- "text": {
- "id": "upstream-e2e-same-model-provider-identity-main",
- "inputTokens": 128,
- "outputTokens": 12,
- "text": "upstream-e2e-ok"
- }
- }
- }
- ]
- }
|