| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142 |
- {
- "version": 1,
- "caseName": "conversation-session-model-switch-edit-fork",
- "spec": "./test/e2e/conversation-session/models/conversation-session-model-switch-edit-fork.test.ts",
- "fixtures": [
- {
- "id": "model-switch-edit-fork-title",
- "description": "P0-10 completed 后 edit/fork 切模型 case 内的标题生成固定响应。",
- "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-model-switch-edit-fork-title\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-pro\",\"content\":[{\"type\":\"text\",\"text\":\"{\\\"title\\\":\\\"Model Switch Edit Fork\\\"}\"}],\"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": "model-switch-edit-source-primary",
- "description": "P0-10 edit 分支 source turn,以 primary 配置建立 completed 历史。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "核心断言在请求 capture 的 primary model/thought 和后续 edit 重跑配置;响应只需稳定完成。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["E2E_MODEL_SWITCH_EDIT_SOURCE"],
- "bodyIncludes": ["E2E_MODEL_SWITCH_EDIT_SOURCE", "upstream-e2e-ok"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "statusMessage": "OK",
- "text": {
- "id": "upstream-e2e-model-switch-edit-source-primary",
- "inputTokens": 128,
- "outputTokens": 12,
- "text": "upstream-e2e-ok"
- }
- }
- },
- {
- "id": "model-switch-edit-rerun-secondary",
- "description": "P0-10 edit 分支 completed 后切 secondary 再重跑的固定回复。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "核心断言在 edit rerun 请求 capture 的 secondary model/thought,响应只需稳定完成。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["E2E_MODEL_SWITCH_EDIT_RERUN"],
- "bodyIncludes": ["E2E_MODEL_SWITCH_EDIT_RERUN", "upstream-e2e-ok"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "statusMessage": "OK",
- "text": {
- "id": "upstream-e2e-model-switch-edit-rerun-secondary",
- "inputTokens": 128,
- "outputTokens": 12,
- "text": "upstream-e2e-ok"
- }
- }
- },
- {
- "id": "model-switch-fork-source-primary",
- "description": "P0-10 fork 分支 source turn,以 primary 配置建立可 fork 的 completed assistant message。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "核心断言在 fork 前 source 请求和后续派生 session 配置;响应只需稳定完成并展示 fork 入口。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["E2E_MODEL_SWITCH_FORK_SOURCE"],
- "bodyIncludes": ["E2E_MODEL_SWITCH_FORK_SOURCE", "upstream-e2e-ok"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "statusMessage": "OK",
- "text": {
- "id": "upstream-e2e-model-switch-fork-source-primary",
- "inputTokens": 128,
- "outputTokens": 12,
- "text": "upstream-e2e-ok"
- }
- }
- },
- {
- "id": "model-switch-fork-followup-secondary",
- "description": "P0-10 fork 分支派生 session follow-up 的固定回复。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "核心断言在 fork follow-up 请求 capture 的 secondary model/thought,响应只需稳定完成。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["E2E_MODEL_SWITCH_FORK_FOLLOWUP"],
- "bodyIncludes": ["E2E_MODEL_SWITCH_FORK_FOLLOWUP", "upstream-e2e-ok"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "statusMessage": "OK",
- "text": {
- "id": "upstream-e2e-model-switch-fork-followup-secondary",
- "inputTokens": 128,
- "outputTokens": 12,
- "text": "upstream-e2e-ok"
- }
- }
- }
- ]
- }
|