svir 0.1.6

A small, composable SDK for talking to large language models
Documentation
1
2
3
4
5
6
7
8
9
10
11
{
  "description": "Comments, id, retry, and 'event: message' lines around data are part of SSE.",
  "chunks": [
    ": keep-alive\n\n",
    "id: 1\nretry: 1000\nevent: message\ndata: {\"id\":\"c\",\"model\":\"m\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\",\"content\":\"ok\"},\"finish_reason\":null}]}\n\n",
    "data: {\"id\":\"c\",\"model\":\"m\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}]}\n\n",
    "data: [DONE]\n\n"
  ],
  "strides": [1, 3, 8192],
  "expect": {"strict": {"completion": {"finish": "stop", "text": "ok"}}, "lenient": "same"}
}