conversation-session-openrouter-model-id-colon.json 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-openrouter-model-id-colon",
  4. "spec": "./test/e2e/conversation-session/conversation-session-openrouter-model-id-colon.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "openrouter-model-id-colon-title",
  8. "description": "含冒号 OpenRouter modelId case 的标题固定响应。",
  9. "metadata": {
  10. "kind": "common",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "标题生成不属于含冒号 modelId 的产品语义。"
  14. },
  15. "match": {
  16. "method": "POST",
  17. "pathIncludes": "/chat/completions",
  18. "bodyIncludes": ["Generate a concise title"]
  19. },
  20. "response": {
  21. "statusCode": 200,
  22. "statusMessage": "OK",
  23. "headers": { "content-type": "text/event-stream; charset=utf-8" },
  24. "body": "data: {\"id\":\"openrouter-model-id-colon-title\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"nvidia/nemotron-3-ultra-550b-a55b:free\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"{\\\"title\\\":\\\"OpenRouter colon\\\"}\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"openrouter-model-id-colon-title\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"nvidia/nemotron-3-ultra-550b-a55b:free\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}]}\n\ndata: [DONE]\n\n"
  25. }
  26. },
  27. {
  28. "id": "openrouter-model-id-colon-main",
  29. "description": "I62 含冒号 modelId 的首发固定响应。",
  30. "metadata": {
  31. "kind": "main",
  32. "timingPolicy": "fast-text",
  33. "source": "synthetic",
  34. "syntheticReason": "核心断言是完整 OpenRouter modelId 的 UI、V4 配置和请求传递,响应仅用于稳定收口。"
  35. },
  36. "maxMatches": 1,
  37. "match": {
  38. "method": "POST",
  39. "pathIncludes": "/chat/completions",
  40. "lastUserMessageIncludes": ["E2E_OPENROUTER_MODEL_ID_COLON"],
  41. "bodyIncludes": [
  42. "E2E_OPENROUTER_MODEL_ID_COLON",
  43. "nvidia/nemotron-3-ultra-550b-a55b:free"
  44. ],
  45. "bodyExcludes": ["Generate a concise title"]
  46. },
  47. "response": {
  48. "statusCode": 200,
  49. "statusMessage": "OK",
  50. "headers": { "content-type": "text/event-stream; charset=utf-8" },
  51. "body": "data: {\"id\":\"openrouter-model-id-colon-main\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"nvidia/nemotron-3-ultra-550b-a55b:free\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"upstream-e2e-ok\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"openrouter-model-id-colon-main\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"nvidia/nemotron-3-ultra-550b-a55b:free\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}]}\n\ndata: [DONE]\n\n"
  52. }
  53. }
  54. ]
  55. }