conversation-session-highspeed-queue-edit.json 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-highspeed-queue-edit",
  4. "spec": "./test/e2e/conversation-session/entitlements/conversation-session-highspeed-queue-edit.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "highspeed-queue-edit-running-turn",
  8. "description": "HS-E2E-06 首轮 Highspeed 可控慢流,保持 running 以便后续输入入队并在 Composer 冻结编辑。",
  9. "metadata": {
  10. "kind": "main",
  11. "timingPolicy": "controlled-stream",
  12. "source": "synthetic",
  13. "syntheticReason": "queue 只在 running turn 期间存在;固定慢流窗口验证队列保存普通 Selection,编辑时不会把隐藏 Highspeed Provider 载入 Composer。"
  14. },
  15. "maxMatches": 1,
  16. "match": {
  17. "method": "POST",
  18. "pathIncludes": "/messages",
  19. "lastUserMessageIncludes": ["E2E_HIGHSPEED_QUEUE_EDIT_SLOW"],
  20. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  21. },
  22. "response": {
  23. "statusCode": 200,
  24. "statusMessage": "OK",
  25. "headers": {
  26. "cache-control": "no-cache",
  27. "content-type": "text/event-stream; charset=utf-8"
  28. },
  29. "chunks": [
  30. {
  31. "offsetMs": 0,
  32. "text": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"highspeed-queue-edit-running\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"GLM-5.3\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":80,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":0,\"service_tier\":\"standard\"}}}\n\n"
  33. },
  34. {
  35. "offsetMs": 0,
  36. "text": "event: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\n"
  37. },
  38. {
  39. "offsetMs": 0,
  40. "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"HIGHSPEED_QUEUE_EDIT_STREAMING \"}}\n\n"
  41. },
  42. {
  43. "offsetMs": 0,
  44. "text": "event: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\n"
  45. },
  46. {
  47. "offsetMs": 0,
  48. "text": "event: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":80,\"output_tokens\":4,\"service_tier\":\"standard\"}}\n\n"
  49. },
  50. {
  51. "offsetMs": 0,
  52. "text": "event: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
  53. }
  54. ],
  55. "text": {
  56. "id": "highspeed-queue-edit-running",
  57. "inputTokens": 80,
  58. "outputTokens": 4,
  59. "text": "HIGHSPEED_QUEUE_EDIT_STREAMING"
  60. },
  61. "releaseAfterChunks": 3
  62. }
  63. }
  64. ]
  65. }