---
id: change/bcapps/13766
type: change
title: "#13766 [E-Document] Set max output tokens for MLLM extraction (29.x)"
summary: The E-Document MLLM Handler now sets an explicit maximum output token budget for MLLM extraction during e-document import, in preparation for the 5.6 model. This is a backport to 29.x.
tier: official
language: en
tags:
  - other
  - releases/29.x
  - bc29
  - codeunit e-document mllm handler
system: integration
review:
  state: reviewed
  by: opus
  at: "2026-11-12T00:55:54.837Z"
  flags: []
generated:
  at: "2026-11-30T00:15:18.424Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 888eb4c9e31b4ccec32b4a0402d2d7272ac070bc
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/13766
    title: "microsoft/BCApps#13766: [E-Document] Set max output tokens for MLLM extraction (29.x)"
    date: "2026-11-11"
    commit: 888eb4c9e31b4ccec32b4a0402d2d7272ac070bc
    t: null
    quote: Set explicit ouput token budget to prepare for 5.6 model.
links:
  learn: []
  objects:
    - object/codeunit/6231
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-onafterdocumentdownload-event
      title: OnAfterDocumentDownload Event
      label: possibly related
      why: Documents document output handling and report generation artifacts relevant to E-Document MLLM extraction.
      by: model
number: 13766
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/13766
kind: pr
base_branch: releases/29.x
major: "29"
merged_at: "2026-11-11T08:26:01Z"
author: mynjj
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: Integrations"
change_class: code
change_kind: other
behavior_change: true
breaking: false
files:
  count: 1
  additions: 6
  deletions: 0
  al: 1
apps:
  - EDocument
objects_touched:
  - key: codeunit/6231
    page: codeunit/6231
    type: codeunit
    id: 6231
    name: E-Document MLLM Handler
    app: EDocument
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 658197
systems:
  - integration
quote: Set explicit ouput token budget to prepare for 5.6 model.
joined_against:
  major: "29"
  commit: 2c932722a2917f4592f1541d4d85dc247c8942ac
---

# #13766 [E-Document] Set max output tokens for MLLM extraction (29.x)

> The E-Document MLLM Handler now sets an explicit maximum output token budget for MLLM extraction during e-document import, in preparation for the 5.6 model. This is a backport to 29.x.

[Pull request](https://github.com/microsoft/BCApps/pull/13766) · merged into `releases/29.x` (BC29) on 2026-11-11 by mynjj · 1 file (+6 -0), 1 AL · other · tier official · reviewed (checked by Opus)

## What changed

- Explicit max output tokens set for MLLM extraction in codeunit 6231
- Prepares for the 5.6 model
- Released on the 29.x branch
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 6231 "E-Document MLLM Handler"](../../objects/codeunit/6231.md), EDocument: modified

## Context

- Work items: AB#658197
- Labels: AL: Apps (W1), Team: Integrations
- Systems: integration
- From the description: "Set explicit ouput token budget to prepare for 5.6 model."

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [OnAfterDocumentDownload Event](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-onafterdocumentdownload-event) — possibly related: Documents document output handling and report generation artifacts relevant to E-Document MLLM extraction. (model-linked)

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
