Skip to content
HALOWERK

Modellwerk

llm stream choice assembly

Return assembled text per choice with duplicate finish and post-finish chunk witnesses. Supplied data only; no model call or provider request.

POST https://modell.halowerk.com/v1/llm-stream-choice-assembly

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
chunksarrayYes
Show full input schema
{
  "type": "object",
  "properties": {
    "chunks": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "choice": {
            "type": "integer",
            "minimum": 0,
            "maximum": 20
          },
          "text": {
            "type": "string",
            "maxLength": 1000
          },
          "finish": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 80
          }
        },
        "required": [
          "choice",
          "text",
          "finish"
        ],
        "additionalProperties": false
      },
      "maxItems": 100,
      "minItems": 1
    }
  },
  "required": [
    "chunks"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "chunks": [
    {
      "choice": 0,
      "text": "The answer ",
      "finish": null
    },
    {
      "choice": 0,
      "text": "is 42.",
      "finish": "stop"
    }
  ]
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-18 UTC.

More endpoints in this hub

All endpoints in this hub โ†’