conversation-session-v4-model-switch.json 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-v4-model-switch",
  4. "spec": "./test/e2e/conversation-session/models/conversation-session-v4-model-switch.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "v4-model-switch-title",
  8. "description": "E2E_V4_MODEL_SWITCH_SEED 首发的 case-local 标题生成响应。",
  9. "metadata": {
  10. "kind": "common",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "E2E_V4_MODEL_SWITCH_SEED 首发会触发默认 title sidecar;固定 case-local 标题响应,避免 default replay 回退 legacy provider-basic,并用该首发 marker 隔离跨 case 匹配。"
  14. },
  15. "match": {
  16. "method": "POST",
  17. "pathIncludes": "/messages",
  18. "bodyIncludes": ["Generate a concise title", "E2E_V4_MODEL_SWITCH_SEED"]
  19. },
  20. "response": {
  21. "statusCode": 200,
  22. "text": {
  23. "id": "v4-model-switch-title",
  24. "inputTokens": 64,
  25. "outputTokens": 8,
  26. "text": "{\"title\":\"V4 Model Switch E2E\"}"
  27. }
  28. }
  29. },
  30. {
  31. "id": "v4-model-switch-seed",
  32. "description": "M4 switchModelConfig 门禁:首轮固定回复,建立可切模型的 session。",
  33. "metadata": {
  34. "kind": "main",
  35. "timingPolicy": "fast-text",
  36. "source": "synthetic",
  37. "syntheticReason": "模型切换只需一个已存在 session;首轮文案固定。"
  38. },
  39. "maxMatches": 1,
  40. "match": {
  41. "method": "POST",
  42. "pathIncludes": "/messages",
  43. "lastUserMessageIncludes": ["E2E_V4_MODEL_SWITCH_SEED"],
  44. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  45. },
  46. "response": {
  47. "statusCode": 200,
  48. "text": {
  49. "id": "v4-model-switch-seed",
  50. "inputTokens": 80,
  51. "outputTokens": 8,
  52. "text": "V4_MODEL_SWITCH_SEED_OK"
  53. }
  54. }
  55. }
  56. ]
  57. }