{
  "scope": "Public retained example and task-specific verification checklist; no inference or correction executed.",
  "repairId": "fix-python-unicode-sse-lines",
  "repairURL": "https://kingy.ai/ai-fix-finder/fix-python-unicode-sse-lines/",
  "example": {
    "request": {
      "model": "kingy-repair-fixture",
      "messages": [
        {
          "role": "user",
          "content": "Repeat the following text exactly, including all Unicode characters and separators. No prefix, quotes or suffix.\nLS-BEGIN left right LS-END PS-BEGIN left right PS-END NEL-BEGIN leftright NEL-END café café 雪 🛠️"
        }
      ],
      "temperature": 0,
      "seed": 42,
      "max_tokens": 256,
      "cache_prompt": false,
      "chat_template_kwargs": {
        "enable_thinking": false
      },
      "stream": true
    },
    "response": "data: {\"choices\":[{\"finish_reason\":null,\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":null}}],\"created\":1792213472,\"id\":\"chatcmpl-pxnBoERSYy6LVDKuLEAFBF2S9CxeNDnH\",\"model\":\"kingy-repair-fixture\",\"system_fingerprint\":\"b11429-d81235049\",\"object\":\"chat.completion.chunk\"}\n\ndata: {\"choices\":[{\"finish_reason\":null,\"index\":0,\"delta\":{\"content\":\"LS\"}}],\"created\":1792213472,\"id\":\"chatcmpl-pxnBoERSYy6LVDKuLEAFBF2S9CxeNDnH\",\"model\":\"kingy-repair-fixture\",\"system_fingerprint\":\"b11429-d81235049\",\"object\":\"chat.completion.chunk\"}\n\ndata: {\"choices\":[{\"finish_reason\":null,\"index\":0,\"delta\":{\"content\":\"-BEGIN\"}}],\"created\":1792213472,\"id\":\"chatcmpl-pxnBoERSYy6LVDKuLEAFBF2S9CxeNDnH\",\"model\":\"kingy-repair-fixture\",\"system_fingerprint\":\"b11429-d81235049\",\"object\":\"chat.completion.chunk\"}\n\ndata: {\"choices\":[{\"finish_reason\":null,\"index\":0,\"delta\":{\"content\":\" left\"}}],\"created\":1792213472,\"id\":\"chatcmpl-pxnBoERSYy6LVDKuLEAFBF2S9CxeNDnH\",\"model\":\"kingy-repair-fixture\",\"system_fingerprint\":\"b11429-d81235049\",\"object\":\"chat.completion.chunk\"}\n\ndata: {\"choices\":[{\"finish_reason\":null,\"index\":0,\"delta\":{\"content\":\" \"}}],\"created\":1792213472,\"id\":\"chatcmpl-pxnBoERSYy6LVDKuLEAFBF2S9CxeNDnH\",\"model\":\"kingy-repair-fixture\",\"system_fingerprint\":\"b11429-d81235049\",\"object\":\"chat.completion.chunk\"}\n\ndata: {\"choices\":[{\"finish_reason\":null,\"index\":0,\"delta\":{\"content\":\"right\"}}],\"created\":1792213472,\"id\":\"chatcmpl-pxnBoERSYy6LVDKuLEAFBF2S9CxeNDnH\",\"model\":\"kingy-repair-fixture\",\"system_fingerprint\":\"b11429-d81235049\",\"object\":\"chat.completion.chunk\"}\n\ndata: {\"choices\":[{\"finish_reason\":null,\"index\":0,\"delta\":{\"content\":\" LS\"}}],\"created\":1792213472,\"id\":\"chatcmpl-pxnBoERSYy6LVDKuLEAFBF2S9CxeNDnH\",\"model\":\"kingy-repair-fixture\",\"system_fingerprint\":\"b11429-d81235049\",\"object\":\"chat.completion.chunk\"}\n\ndata: {\"choices\":[{\"finish_reason\":null,\"index\":0,\"delta\":{\"content\":\"-END\"}}],\"created\":1792213472,\"id\":\"chatcmpl-pxnBoERSYy6LVDKuLEAFBF2S9CxeNDnH\",\"model\":\"kingy-repair-fixture\",\"system_fingerprint\":\"b11429-d81235049\",\"object\":\"chat.completion.chunk\"}\n\ndata: {\"choices\":[{\"finish_reason\":null,\"index\":0,\"delta\":{\"content\":\" PS\"}}],\"created\":1792213472,\"id\":\"chatcmpl-pxnBoERSYy6LVDKuLEAFBF2S9CxeNDnH\",\"model\":\"kingy-repair-fixture\",\"system_fingerprint\":\"b11429-d81235049\",\"object\":\"chat.completion.chunk\"}\n\ndata: {\"choices\":[{\"finish_reason\":null,\"index\":0,\"delta\":{\"content\":\"-BEGIN\"}}],\"created\":1792213472,\"id\":\"chatcmpl-pxnBoERSYy6LVDKuLEAFBF2S9CxeNDnH\",\"model\":\"kingy-repair-fixture\",\"system_fingerprint\":\"b11429-d81235049\",\"object\":\"chat.completion.chunk\"}\n\ndata: {\"choices\":[{\"finish_reason\":null,\"index\":0,\"delta\":{\"content\":\" left\"}}],\"created\":1792213473,\"id\":\"chatcmpl-pxnBoERSYy6LVDKuLEAFBF2S9CxeNDnH\",\"model\":\"kingy-repair-fixture\",\"system_fingerprint\":\"b11429-d81235049\",\"object\":\"chat.completion.chunk\"}\n\ndata: {\"choices\":[{\"finish_reason\":null,\"index\":0,\"delta\":{\"content\":\" \"}}],\"created\":1792213473,\"id\":\"chatcmpl-pxnBoERSYy6LVDKuLEAFBF2S9CxeNDnH\",\"model\":\"kingy-repair-fixture\",\"system_fingerprint\":\"b11429-d81235049\",\"object\":\"chat.completion.chunk\"}\n\ndata: {\"choices\":[{\"finish_reason\":null,\"index\":0,\"delta\":{\"content\":\"right\"}}],\"created\":1792213473,\"id\":\"chatcmpl-pxnBoERSYy6LVDKuLEAFBF2S9CxeNDnH\",\"model\":\"kingy-repair-fixture\",\"system_fingerprint\":\"b11429-d81235049\",\"object\":\"chat.completion.chunk\"}\n\ndata: {\"choices\":[{\"finish_reason\":null,\"index\":0,\"delta\":{\"content\":\" PS\"}}],\"created\":1792213473,\"id\":\"chatcmpl-pxnBoERSYy6LVDKuLEAFBF2S9CxeNDnH\",\"model\":\"kingy-repair-fixture\",\"system_fingerprint\":\"b11429-d81235049\",\"object\":\"chat.completion.chunk\"}\n\ndata: {\"choices\":[{\"finish_reason\":null,\"index\":0,\"delta\":{\"content\":\"-END\"}}],\"created\":1792213473,\"id\":\"chatcmpl-pxnBoERSYy6LVDKuLEAFBF2S9CxeNDnH\",\"model\":\"kingy-repair-fixture\",\"system_fingerprint\":\"b11429-d81235049\",\"object\":\"chat.completion.chunk\"}\n\ndata: {\"choices\":[{\"finish_reason\":null,\"index\":0,\"delta\":{\"content\":\" N\"}}],\"created\":1792213473,\"id\":\"chatcmpl-pxnBoERSYy6LVDKuLEAFBF2S9CxeNDnH\",\"model\":\"kingy-repair-fixture\",\"system_fingerprint\":\"b11429-d81235049\",\"object\":\"chat.completion.chunk\"}\n\ndata: {\"choices\":[{\"finish_reason\":null,\"index\":0,\"delta\":{\"content\":\"EL\"}}],\"created\":1792213473,\"id\":\"chatcmpl-pxnBoERSYy6LVDKuLEAFBF2S9CxeNDnH\",\"model\":\"kingy-repair-fixture\",\"system_fingerprint\":\"b11429-d81235049\",\"object\":\"chat.completion.chunk\"}\n\ndata: {\"choices\":[{\"finish_reason\":null,\"index\":0,\"delta\":{\"content\":\"-BEGIN\"}}],\"created\":1792213473,\"id\":\"chatcmpl-pxnBoERSYy6LVDKuLEAFBF2S9CxeNDnH\",\"model\":\"kingy-repair-fixture\",\"system_fingerprint\":\"b11429-d81235049\",\"object\":\"chat.completion.chunk\"}\n\ndata: {\"choices\":[{\"finish_reason\":null,\"index\":0,\"delta\":{\"content\":\" left\"}}],\"created\":1792213473,\"id\":\"chatcmpl-pxnBoERSYy6LVDKuLEAFBF2S9CxeNDnH\",\"model\":\"kingy-repair-fixture\",\"system_fingerprint\":\"b11429-d81235049\",\"object\":\"chat.completion.chunk\"}\n\ndata: {\"choices\":[{\"finish_reason\":null,\"index\":0,\"delta\":{\"content\":\"\"}}],\"created\":1792213473,\"id\":\"chatcmpl-pxnBoERSYy6LVDKuLEAFBF2S9CxeNDnH\",\"model\":\"kingy-repair-fixture\",\"system_fingerprint\":\"b11429-d81235049\",\"object\":\"chat.completion.chunk\"}\n\ndata: {\"choices\":[{\"finish_reason\":null,\"index\":0,\"delta\":{\"content\":\"right\"}}],\"created\":1792213473,\"id\":\"chatcmpl-pxnBoERSYy6LVDKuLEAFBF2S9CxeNDnH\",\"model\":\"kingy-repair-fixture\",\"system_fingerprint\":\"b11429-d81235049\",\"object\":\"chat.completion.chunk\"}\n\ndata: {\"choices\":[{\"finish_reason\":null,\"index\":0,\"delta\":{\"content\":\" N\"}}],\"created\":1792213473,\"id\":\"chatcmpl-pxnBoERSYy6LVDKuLEAFBF2S9CxeNDnH\",\"model\":\"kingy-repair-fixture\",\"system_fingerprint\":\"b11429-d81235049\",\"object\":\"chat.completion.chunk\"}\n\ndata: {\"choices\":[{\"finish_reason\":null,\"index\":0,\"delta\":{\"content\":\"EL\"}}],\"created\":1792213473,\"id\":\"chatcmpl-pxnBoERSYy6LVDKuLEAFBF2S9CxeNDnH\",\"model\":\"kingy-repair-fixture\",\"system_fingerprint\":\"b11429-d81235049\",\"object\":\"chat.completion.chunk\"}\n\ndata: {\"choices\":[{\"finish_reason\":null,\"index\":0,\"delta\":{\"content\":\"-END\"}}],\"created\":1792213473,\"id\":\"chatcmpl-pxnBoERSYy6LVDKuLEAFBF2S9CxeNDnH\",\"model\":\"kingy-repair-fixture\",\"system_fingerprint\":\"b11429-d81235049\",\"object\":\"chat.completion.chunk\"}\n\ndata: {\"choices\":[{\"finish_reason\":null,\"index\":0,\"delta\":{\"content\":\" café\"}}],\"created\":1792213474,\"id\":\"chatcmpl-pxnBoERSYy6LVDKuLEAFBF2S9CxeNDnH\",\"model\":\"kingy-repair-fixture\",\"system_fingerprint\":\"b11429-d81235049\",\"object\":\"chat.completion.chunk\"}\n\ndata: {\"choices\":[{\"finish_reason\":null,\"index\":0,\"delta\":{\"content\":\" cafe\"}}],\"created\":1792213474,\"id\":\"chatcmpl-pxnBoERSYy6LVDKuLEAFBF2S9CxeNDnH\",\"model\":\"kingy-repair-fixture\",\"system_fingerprint\":\"b11429-d81235049\",\"object\":\"chat.completion.chunk\"}\n\ndata: {\"choices\":[{\"finish_reason\":null,\"index\":0,\"delta\":{\"content\":\"́\"}}],\"created\":1792213474,\"id\":\"chatcmpl-pxnBoERSYy6LVDKuLEAFBF2S9CxeNDnH\",\"model\":\"kingy-repair-fixture\",\"system_fingerprint\":\"b11429-d81235049\",\"object\":\"chat.completion.chunk\"}\n\ndata: {\"choices\":[{\"finish_reason\":null,\"index\":0,\"delta\":{\"content\":\" 雪\"}}],\"created\":1792213474,\"id\":\"chatcmpl-pxnBoERSYy6LVDKuLEAFBF2S9CxeNDnH\",\"model\":\"kingy-repair-fixture\",\"system_fingerprint\":\"b11429-d81235049\",\"object\":\"chat.completion.chunk\"}\n\ndata: {\"choices\":[{\"finish_reason\":null,\"index\":0,\"delta\":{\"content\":\" 🛠\"}}],\"created\":1792213474,\"id\":\"chatcmpl-pxnBoERSYy6LVDKuLEAFBF2S9CxeNDnH\",\"model\":\"kingy-repair-fixture\",\"system_fingerprint\":\"b11429-d81235049\",\"object\":\"chat.completion.chunk\"}\n\ndata: {\"choices\":[{\"finish_reason\":null,\"index\":0,\"delta\":{\"content\":\"️\"}}],\"created\":1792213474,\"id\":\"chatcmpl-pxnBoERSYy6LVDKuLEAFBF2S9CxeNDnH\",\"model\":\"kingy-repair-fixture\",\"system_fingerprint\":\"b11429-d81235049\",\"object\":\"chat.completion.chunk\"}\n\ndata: {\"choices\":[{\"finish_reason\":\"stop\",\"index\":0,\"delta\":{}}],\"created\":1792213474,\"id\":\"chatcmpl-pxnBoERSYy6LVDKuLEAFBF2S9CxeNDnH\",\"model\":\"kingy-repair-fixture\",\"system_fingerprint\":\"b11429-d81235049\",\"object\":\"chat.completion.chunk\",\"timings\":{\"cache_n\":0,\"prompt_n\":68,\"prompt_ms\":2564.27,\"prompt_per_token_ms\":37.70985294117647,\"prompt_per_second\":26.518268357076284,\"predicted_n\":37,\"predicted_ms\":2252.069,\"predicted_per_token_ms\":62.55747222222222,\"predicted_per_second\":15.985300628000296}}\n\ndata: [DONE]\n\n",
    "endpoint": "/v1/chat/completions",
    "context": 2048,
    "repairId": "fix-python-unicode-sse-lines",
    "runtime": "llamacpp",
    "note": "Retained repair 008 example, originally qualified 2026-10-16. This preview sends no request and does not retest the model.",
    "checks": [
      "Inspect the real retained SSE bodies and owned expected text in fixtures/008-sse.json. Confirm the actual raw Unicode separators are present.",
      "Replace the broad splitlines framing pattern with the bounded decode_sse reference in client_fixes.py or a maintained SSE client with equivalent framing behavior.",
      "Compare complete decoded output with the original expected string, including composed/decomposed accents, CJK, emoji and each separator.",
      "Replay the same real body in whole, one-byte and seven-byte chunks. Require identical complete text under every partition.",
      "Reject truncated UTF-8, incomplete streams and length termination. The reference decoder supports text-only chat responses and is not a browser EventSource replacement."
    ],
    "correction": "Decode UTF-8 incrementally and frame SSE lines only on CRLF, CR or LF. Preserve Unicode separators inside JSON data. Require a complete stop event and DONE before accepting the answer.",
    "evidenceDate": "2026-10-16"
  }
}
