conversation-session-message-cjk-bare-url.json 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-message-cjk-bare-url",
  4. "spec": "./test/e2e/conversation-session/presentation/conversation-session-message-cjk-bare-url.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "message-cjk-bare-url",
  8. "match": {
  9. "method": "POST",
  10. "pathIncludes": "/messages",
  11. "lastUserMessageIncludes": ["E2E_MESSAGE_CJK_BARE_URL"],
  12. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  13. },
  14. "response": {
  15. "statusCode": 200,
  16. "statusMessage": "OK",
  17. "headers": {
  18. "cache-control": "no-cache",
  19. "content-type": "text/event-stream; charset=utf-8"
  20. },
  21. "body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"message-cjk-bare-url\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":120,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":0,\"service_tier\":\"standard\"}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"E2E_MESSAGE_CJK_BARE_URL_DONE\\n\\n线上已替换:**https://example.com/site**(115 秒,链接不变)\\n\\n另见 *https://example.com/a?q=1*,以及 https://example.com/b。结束\\n\\n代码 `**https://example.com/code**(` 保持原文\\n\\n> ```text\\n> 引用代码:https://example.com/quote-code。\\n> ```\\n\\n- 列表步骤\\n\\n ```text\\n 列表代码:https://example.com/list-code。\\n ```\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":120,\"output_tokens\":40,\"service_tier\":\"standard\"}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
  22. },
  23. "metadata": {
  24. "kind": "main",
  25. "source": "synthetic",
  26. "timingPolicy": "fast-text",
  27. "syntheticReason": "固定裸 URL 紧跟强调符与中文标点的正文,验证链接边界和强调配对,不评估模型生成质量。"
  28. }
  29. },
  30. {
  31. "id": "message-cjk-bare-url-title",
  32. "description": "中文边界裸链接用例的标题 sidecar 固定响应。",
  33. "metadata": {
  34. "kind": "common",
  35. "timingPolicy": "fast-text",
  36. "source": "synthetic",
  37. "syntheticReason": "标题不属于链接边界产品语义,只需避免 sidecar 请求误命中业务 fixture。"
  38. },
  39. "maxMatches": 20,
  40. "match": {
  41. "method": "POST",
  42. "pathIncludes": "/messages",
  43. "bodyIncludes": ["Generate a concise title", "E2E_MESSAGE_CJK_BARE_URL"]
  44. },
  45. "response": {
  46. "statusCode": 200,
  47. "text": {
  48. "id": "message-cjk-bare-url-title",
  49. "inputTokens": 64,
  50. "outputTokens": 8,
  51. "text": "{\"title\":\"CJK Bare URL E2E\"}"
  52. }
  53. }
  54. }
  55. ]
  56. }