conversation-session-new-session-inherits-model.json 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-new-session-inherits-model",
  4. "spec": "./test/e2e/conversation-session/models/conversation-session-new-session-inherits-model.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "new-session-inherits-model-title",
  8. "description": "新建会话继承模型 case 内的标题生成固定响应,避免严格 case-local replay 依赖 legacy provider-basic。",
  9. "metadata": {
  10. "kind": "common",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "标题生成不是本 case 的产品语义,只需要稳定返回,防止标题请求误命中首发业务 fixture。"
  14. },
  15. "match": {
  16. "method": "POST",
  17. "pathIncludes": "/messages",
  18. "bodyIncludes": ["Generate a concise title"]
  19. },
  20. "response": {
  21. "statusCode": 200,
  22. "statusMessage": "OK",
  23. "headers": {
  24. "content-type": "application/json; charset=utf-8"
  25. },
  26. "body": "{\"id\":\"upstream-e2e-new-session-inherits-model-title\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-pro\",\"content\":[{\"type\":\"text\",\"text\":\"{\\\"title\\\":\\\"Model Inheritance\\\"}\"}],\"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\"}}"
  27. }
  28. },
  29. {
  30. "id": "new-session-inherits-model-main-a",
  31. "description": "I11 继承源会话使用 secondary provider/model 首发的固定最终回复。",
  32. "metadata": {
  33. "kind": "main",
  34. "timingPolicy": "fast-text",
  35. "source": "synthetic",
  36. "syntheticReason": "核心断言在继承源请求 body/model/thought 和 UI 回复;响应只需稳定完成并包含约定文本。"
  37. },
  38. "maxMatches": 1,
  39. "match": {
  40. "method": "POST",
  41. "pathIncludes": "/messages",
  42. "lastUserMessageIncludes": ["E2E_NEW_SESSION_INHERITS_MODEL_A"],
  43. "bodyIncludes": ["E2E_NEW_SESSION_INHERITS_MODEL_A", "upstream-e2e-ok"],
  44. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  45. },
  46. "response": {
  47. "statusCode": 200,
  48. "statusMessage": "OK",
  49. "text": {
  50. "id": "upstream-e2e-new-session-inherits-model-main-a",
  51. "inputTokens": 128,
  52. "outputTokens": 12,
  53. "text": "upstream-e2e-ok"
  54. }
  55. }
  56. },
  57. {
  58. "id": "new-session-inherits-model-main-b",
  59. "description": "I11 新建空草稿继承 secondary provider/model 后直接首发的固定最终回复。",
  60. "metadata": {
  61. "kind": "main",
  62. "timingPolicy": "fast-text",
  63. "source": "synthetic",
  64. "syntheticReason": "核心断言在新建草稿工具栏继承、请求 body/model/thought 和 UI 回复;响应只需稳定完成并包含约定文本。"
  65. },
  66. "maxMatches": 1,
  67. "match": {
  68. "method": "POST",
  69. "pathIncludes": "/messages",
  70. "lastUserMessageIncludes": ["E2E_NEW_SESSION_INHERITS_MODEL_B"],
  71. "bodyIncludes": ["E2E_NEW_SESSION_INHERITS_MODEL_B", "upstream-e2e-ok"],
  72. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  73. },
  74. "response": {
  75. "statusCode": 200,
  76. "statusMessage": "OK",
  77. "text": {
  78. "id": "upstream-e2e-new-session-inherits-model-main-b",
  79. "inputTokens": 128,
  80. "outputTokens": 12,
  81. "text": "upstream-e2e-ok"
  82. }
  83. }
  84. }
  85. ]
  86. }