conversation-session-thought-level-cold-resume.json 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-thought-level-cold-resume",
  4. "spec": "./test/e2e/conversation-session/conversation-session-thought-level-cold-resume.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "thought-cold-resume-seed-main",
  8. "description": "I63 冷重启前创建 completed GLM-5.2 max session 的稳定回复。",
  9. "metadata": {
  10. "kind": "main",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "核心断言是 completed task 的 task-local thought 冷恢复;响应只需稳定结束首轮。"
  14. },
  15. "maxMatches": 1,
  16. "match": {
  17. "method": "POST",
  18. "pathIncludes": "/chat/completions",
  19. "lastUserMessageIncludes": ["E2E_THOUGHT_COLD_RESUME_SEED"],
  20. "bodyIncludes": ["E2E_THOUGHT_COLD_RESUME_SEED", "GLM-5.2", "upstream-e2e-ok"],
  21. "bodyExcludes": ["Generate a concise title", "extra_body"]
  22. },
  23. "response": {
  24. "statusCode": 200,
  25. "statusMessage": "OK",
  26. "headers": { "content-type": "text/event-stream; charset=utf-8" },
  27. "body": "data: {\"id\":\"chatcmpl-thought-cold-seed\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"GLM-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-thought-cold-seed\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"GLM-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"upstream-e2e-ok\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-thought-cold-seed\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"GLM-5.2\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":128,\"completion_tokens\":12,\"total_tokens\":140}}\n\ndata: [DONE]\n\n"
  28. }
  29. },
  30. {
  31. "id": "thought-cold-resume-follow-main",
  32. "description": "I63 冷重启后同一 task 续发时验证 GLM-5.2 max 请求的稳定回复。",
  33. "metadata": {
  34. "kind": "main",
  35. "timingPolicy": "fast-text",
  36. "source": "synthetic",
  37. "syntheticReason": "响应正文不是产品变量;续发 request body 的 max 配置才是核心证据。"
  38. },
  39. "maxMatches": 1,
  40. "match": {
  41. "method": "POST",
  42. "pathIncludes": "/chat/completions",
  43. "lastUserMessageIncludes": ["E2E_THOUGHT_COLD_RESUME_FOLLOW"],
  44. "bodyIncludes": ["E2E_THOUGHT_COLD_RESUME_FOLLOW", "GLM-5.2", "upstream-e2e-ok"],
  45. "bodyExcludes": ["Generate a concise title", "extra_body"]
  46. },
  47. "response": {
  48. "statusCode": 200,
  49. "statusMessage": "OK",
  50. "headers": { "content-type": "text/event-stream; charset=utf-8" },
  51. "body": "data: {\"id\":\"chatcmpl-thought-cold-follow\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"GLM-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-thought-cold-follow\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"GLM-5.2\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"upstream-e2e-ok\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-thought-cold-follow\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"GLM-5.2\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":144,\"completion_tokens\":12,\"total_tokens\":156}}\n\ndata: [DONE]\n\n"
  52. }
  53. }
  54. ]
  55. }