conversation-session-r3-mixed-entries.json 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-r3-mixed-entries",
  4. "spec": "./test/e2e/conversation-session/remote/navigation/conversation-session-r3-mixed-entries.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "r3-mixed-reconnect-title",
  8. "description": "R3 mixed entries task 标题辅助响应。",
  9. "metadata": {
  10. "kind": "common",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "标题不属于冷恢复断言。"
  14. },
  15. "maxMatches": 4,
  16. "match": {
  17. "method": "POST",
  18. "pathIncludes": "/chat/completions",
  19. "bodyIncludes": ["Generate a concise title", "E2E_R3_MIXED_ENTRIES"]
  20. },
  21. "response": {
  22. "statusCode": 200,
  23. "headers": {
  24. "content-type": "application/json; charset=utf-8"
  25. },
  26. "body": "{\"id\":\"r3-mixed-title\",\"object\":\"chat.completion\",\"created\":0,\"model\":\"e2e-ssh-remote-lifecycle-model\",\"choices\":[{\"index\":0,\"message\":{\"role\":\"assistant\",\"content\":\"{\\\"title\\\":\\\"R3 mixed entries\\\"}\"},\"finish_reason\":\"stop\"}]}"
  27. }
  28. },
  29. {
  30. "id": "r3-mixed-reconnect-follow",
  31. "description": "冷恢复后的原任务续发返回独立标记,不能命中首发旧回复。",
  32. "metadata": {
  33. "kind": "main",
  34. "timingPolicy": "fast-text",
  35. "source": "synthetic",
  36. "syntheticReason": "续发以独立回复和当前请求历史证明恢复后的实际路由,无需固定流延迟。"
  37. },
  38. "maxMatches": 1,
  39. "match": {
  40. "method": "POST",
  41. "pathIncludes": "/chat/completions",
  42. "bodyIncludes": ["E2E_R3_MIXED_ENTRIES_A_FOLLOW_PROMPT"],
  43. "bodyExcludes": ["Generate a concise title"]
  44. },
  45. "response": {
  46. "statusCode": 200,
  47. "headers": {
  48. "content-type": "text/event-stream; charset=utf-8"
  49. },
  50. "body": "data: {\"id\":\"r3-mixed-main\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-lifecycle-model\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"R3_MIXED_ENTRIES_FOLLOW_REPLY\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"r3-mixed-main\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-lifecycle-model\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}]}\n\ndata: [DONE]\n\n"
  51. }
  52. },
  53. {
  54. "id": "r3-mixed-reconnect-main",
  55. "description": "R3 mixed entries 首发和续发的通用响应。",
  56. "metadata": {
  57. "kind": "main",
  58. "timingPolicy": "slow-stream",
  59. "source": "synthetic",
  60. "syntheticReason": "首发与冷恢复续发都只需要稳定完成,用 task history 断言路由。"
  61. },
  62. "maxMatches": 10,
  63. "match": {
  64. "method": "POST",
  65. "pathIncludes": "/chat/completions",
  66. "bodyIncludes": ["E2E_R3_MIXED_ENTRIES_"],
  67. "bodyExcludes": ["Generate a concise title"]
  68. },
  69. "response": {
  70. "statusCode": 200,
  71. "delayMs": 1200,
  72. "headers": {
  73. "content-type": "text/event-stream; charset=utf-8"
  74. },
  75. "body": "data: {\"id\":\"r3-mixed-main\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-lifecycle-model\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"R3_MIXED_ENTRIES_REPLY\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"r3-mixed-main\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-lifecycle-model\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}]}\n\ndata: [DONE]\n\n"
  76. }
  77. }
  78. ]
  79. }