{
  "schema_version": "1.0",
  "publisher": "AI Release",
  "article": {
    "title": "Stitching Together Truncated LLM Responses: How We Complete Them",
    "canonical_url": "https://ai-release.org/posts/kak-my-dopisyvaem-oborvannye-otvety-yazykovoy-modeli-i-pochemu-skleyka-a59f6673_en.html",
    "language": "en",
    "article_type": "news",
    "published_at": "2026-09-25T00:00:00+00:00",
    "updated_at": "2026-09-25T00:00:00+00:00"
  },
  "summary": "The point: in a Russian-language service running multiple language models in a single chat, a model cut off its response mid-word due to the max_tokens cap, and restoring coherence required building a continuation-and-stitching mechanism. Where it's available: the case study was published on Habr on September 24, reading time — 3 minutes, views — 8K.",
  "topics": [
    "LLM",
    "finish_reason",
    "chatbot"
  ],
  "entities": [
    {
      "id": "E-SRC",
      "name": "habr.com",
      "type": "source",
      "description": "source domain",
      "url": "https://habr.com/ru/articles/1086420/"
    },
    {
      "id": "E-T1",
      "name": "LLM",
      "type": "topic",
      "description": "publication tag",
      "url": null
    },
    {
      "id": "E-T2",
      "name": "finish_reason",
      "type": "topic",
      "description": "publication tag",
      "url": null
    },
    {
      "id": "E-T3",
      "name": "chatbot",
      "type": "topic",
      "description": "publication tag",
      "url": null
    },
    {
      "id": "E-AIR",
      "name": "AI Release",
      "type": "publisher",
      "description": "published the article",
      "url": "https://ai-release.org/"
    }
  ],
  "claims": [
    {
      "id": "AR-KAKMYDOPIS-001",
      "statement": "The point: in a Russian-language service running multiple language models in a single chat, a model cut off its response mid-word due to the max_tokens cap, and restoring coherence required building a continuation-and-stitching mechanism.",
      "claim_type": "reported_fact",
      "confidence": "not_assessed",
      "source_type": "publication source",
      "verification_status": "reported_unverified",
      "source_url": "https://habr.com/ru/articles/1086420/",
      "article_anchor": "#ai-claim-001",
      "evidence_excerpt": "The point: in a Russian-language service running multiple language models in a single chat, a model cut off its response mid-word due to the max_tokens cap, and restoring coherence required building a continuation-and-stitching mechanism."
    },
    {
      "id": "AR-KAKMYDOPIS-002",
      "statement": "Where it's available: the case study was published on Habr on September 24, reading time — 3 minutes, views — 8K.",
      "claim_type": "reported_fact",
      "confidence": "not_assessed",
      "source_type": "publication source",
      "verification_status": "reported_unverified",
      "source_url": "https://habr.com/ru/articles/1086420/",
      "article_anchor": "#ai-claim-002",
      "evidence_excerpt": "Where it's available: the case study was published on Habr on September 24, reading time — 3 minutes, views — 8K."
    },
    {
      "id": "AR-KAKMYDOPIS-003",
      "statement": "Limitation: no more than four continuations, so a single question doesn't turn into an endless back-and-forth; the cutoffs themselves haven't gone away.",
      "claim_type": "reported_fact",
      "confidence": "not_assessed",
      "source_type": "publication source",
      "verification_status": "reported_unverified",
      "source_url": "https://habr.com/ru/articles/1086420/",
      "article_anchor": "#ai-claim-003",
      "evidence_excerpt": "Limitation: no more than four continuations, so a single question doesn't turn into an endless back-and-forth; the cutoffs themselves haven't gone away."
    },
    {
      "id": "AR-KAKMYDOPIS-004",
      "statement": "Every request to a model has a max_tokens cap.",
      "claim_type": "reported_fact",
      "confidence": "not_assessed",
      "source_type": "publication source",
      "verification_status": "reported_unverified",
      "source_url": "https://habr.com/ru/articles/1086420/",
      "article_anchor": "#ai-claim-004",
      "evidence_excerpt": "Every request to a model has a max_tokens cap."
    },
    {
      "id": "AR-KAKMYDOPIS-005",
      "statement": "In the service it was set to 1200 tokens: in English that's roughly 900 words, but Cyrillic consumes more tokens, so 1200 tokens covered about fifteen hundred characters.",
      "claim_type": "reported_fact",
      "confidence": "not_assessed",
      "source_type": "publication source",
      "verification_status": "reported_unverified",
      "source_url": "https://habr.com/ru/articles/1086420/",
      "article_anchor": "#ai-claim-005",
      "evidence_excerpt": "In the service it was set to 1200 tokens: in English that's roughly 900 words, but Cyrillic consumes more tokens, so 1200 tokens covered about fifteen hundred characters."
    },
    {
      "id": "AR-KAKMYDOPIS-006",
      "statement": "When a response hits the cap, the model returns finish_reason: \"length\" (max_tokens with some providers), and that's the only sign of a truncation.",
      "claim_type": "reported_fact",
      "confidence": "not_assessed",
      "source_type": "publication source",
      "verification_status": "reported_unverified",
      "source_url": "https://habr.com/ru/articles/1086420/",
      "article_anchor": "#ai-claim-006",
      "evidence_excerpt": "When a response hits the cap, the model returns finish_reason: \"length\" (max_tokens with some providers), and that's the only sign of a truncation."
    },
    {
      "id": "AR-KAKMYDOPIS-007",
      "statement": "Raising the cap to 2400 tokens didn't solve the problem: a response can still turn out longer, and every extra token increases the reserved amount.",
      "claim_type": "reported_fact",
      "confidence": "not_assessed",
      "source_type": "publication source",
      "verification_status": "reported_unverified",
      "source_url": "https://habr.com/ru/articles/1086420/",
      "article_anchor": "#ai-claim-007",
      "evidence_excerpt": "Raising the cap to 2400 tokens didn't solve the problem: a response can still turn out longer, and every extra token increases the reserved amount."
    },
    {
      "id": "AR-KAKMYDOPIS-008",
      "statement": "The server sends the client a truncated flag if finish_reason indicated the cap was hit.",
      "claim_type": "reported_fact",
      "confidence": "not_assessed",
      "source_type": "publication source",
      "verification_status": "reported_unverified",
      "source_url": "https://habr.com/ru/articles/1086420/",
      "article_anchor": "#ai-claim-008",
      "evidence_excerpt": "The server sends the client a truncated flag if finish_reason indicated the cap was hit."
    }
  ],
  "relationships": [
    {
      "subject": "habr.com",
      "predicate": "reports on",
      "object": "Stitching Together Truncated LLM Responses: How We Complete Them",
      "claim_id": "AR-KAKMYDOPIS-001"
    },
    {
      "subject": "AI Release",
      "predicate": "publishes",
      "object": "Stitching Together Truncated LLM Responses: How We Complete Them",
      "claim_id": "AR-KAKMYDOPIS-001"
    }
  ],
  "questions_and_answers": [
    {
      "question": "What is this article about?",
      "answer": "Stitching Together Truncated LLM Responses: How We Complete Them. The point: in a Russian-language service running multiple language models in a single chat, a model cut off its response mid-word due to the max_tokens cap, and restoring coherence required building a continuation-and-stitching mechanism.",
      "claim_ids": [
        "AR-KAKMYDOPIS-001"
      ],
      "article_anchor": "#ai-knowledge"
    },
    {
      "question": "What happened?",
      "answer": "The point: in a Russian-language service running multiple language models in a single chat, a model cut off its response mid-word due to the max_tokens cap, and restoring coherence required building a continuation-and-stitching mechanism. Where it's available: the case study was published on Habr on September 24, reading time — 3 minutes, views — 8K. Limitation: no more than four continuations, so a single question doesn't turn into an endless back-and-forth; the cutoffs themselves haven't gone away.",
      "claim_ids": [
        "AR-KAKMYDOPIS-001",
        "AR-KAKMYDOPIS-002",
        "AR-KAKMYDOPIS-003"
      ],
      "article_anchor": "#ai-knowledge"
    },
    {
      "question": "Who is the source?",
      "answer": "habr.com: https://habr.com/ru/articles/1086420/",
      "claim_ids": [],
      "article_anchor": "#ai-knowledge"
    },
    {
      "question": "What remains unknown?",
      "answer": "The article reports the cited source; independent verification and full details are not provided.",
      "claim_ids": [],
      "article_anchor": "#ai-knowledge"
    }
  ],
  "limitations": [
    "No independent verification is provided.",
    "Full details, dates and official documents may be missing.",
    "The article reports a source rather than being the primary source."
  ],
  "citation": {
    "preferred_citation": "AI Release. «Stitching Together Truncated LLM Responses: How We Complete Them». 2026-09-25. https://ai-release.org/posts/kak-my-dopisyvaem-oborvannye-otvety-yazykovoy-modeli-i-pochemu-skleyka-a59f6673_en.html",
    "canonical_url": "https://ai-release.org/posts/kak-my-dopisyvaem-oborvannye-otvety-yazykovoy-modeli-i-pochemu-skleyka-a59f6673_en.html",
    "publisher": "AI Release"
  }
}