{
"description": "Usage reported twice: strict fails, lenient keeps the last.",
"chunks": [
"data: {\"id\":\"c\",\"model\":\"m\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"x\"},\"finish_reason\":null}]}\n\n",
"data: {\"id\":\"c\",\"model\":\"m\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}]}\n\n",
"data: {\"id\":\"c\",\"model\":\"m\",\"choices\":[],\"usage\":{\"prompt_tokens\":1,\"completion_tokens\":1,\"total_tokens\":2}}\n\n",
"data: {\"id\":\"c\",\"model\":\"m\",\"choices\":[],\"usage\":{\"prompt_tokens\":2,\"completion_tokens\":2,\"total_tokens\":4}}\n\n",
"data: [DONE]\n\n"
],
"strides": [1, 3, 8192],
"expect": {
"strict": {"error": "protocol"},
"lenient": {
"completion": {"finish": "stop", "text": "x", "usage": {"input": 2, "output": 2, "total": 4}}
}
}
}