---
id: change/bcapps/14284
type: change
title: "#14284 [E-Document] Default legacy PO matching to Ceres with Key Vault override"
summary: The legacy E-Document PO Copilot Matching codeunit now defaults to the Ceres deployment (GetGPT56CeresLatest) and accepts an optional Key Vault override limited to gpt-56-ceres-latest or gpt-41-latest. Unsupported override values log an anomaly event and fall back to Ceres.
tier: official
language: en
tags:
  - feature
  - main
  - bc30
  - codeunit e-doc. po copilot matching
system: integration
review:
  state: reviewed
  by: opus
  at: "2026-11-29T00:46:33.213Z"
  flags: []
generated:
  at: "2026-12-01T00:17:57.990Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 75b60da9a100e64af08ed7517a26812e5be6a75f
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/14284
    title: "microsoft/BCApps#14284: [E-Document] Default legacy PO matching to Ceres with Key Vault override"
    date: "2026-11-27"
    commit: 75b60da9a100e64af08ed7517a26812e5be6a75f
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/6163
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-app-key-vault
      title: Use Key Vault Secrets in Business Central Extensions
      label: possibly related
      why: Using Key Vault Secrets in extensions documents retrieving secrets from Azure Key Vault.
      by: model
number: 14284
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/14284
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-27T11:32:59Z"
author: gggdttt
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: Integrations"
change_class: code
change_kind: feature
behavior_change: true
breaking: false
files:
  count: 2
  additions: 77
  deletions: 2
  al: 1
apps:
  - EDocument
objects_touched:
  - key: codeunit/6163
    page: codeunit/6163
    type: codeunit
    id: 6163
    name: E-Doc. PO Copilot Matching
    app: EDocument
    status: modified
objects_unjoined: []
obsoletions: []
backports:
  - number: 14585
    base: releases/29.x
    url: https://github.com/microsoft/BCApps/pull/14585
fixes_issues: []
work_items:
  - 659854
systems:
  - integration
quote: null
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #14284 [E-Document] Default legacy PO matching to Ceres with Key Vault override

> The legacy E-Document PO Copilot Matching codeunit now defaults to the Ceres deployment (GetGPT56CeresLatest) and accepts an optional Key Vault override limited to gpt-56-ceres-latest or gpt-41-latest. Unsupported override values log an anomaly event and fall back to Ceres.

[Pull request](https://github.com/microsoft/BCApps/pull/14284) · merged into `main` (BC30) on 2026-11-27 by gggdttt · 2 files (+77 -2), 1 AL · feature · tier official · reviewed (checked by Opus)

## What changed

- Codeunit 6163 updated to use AOAIDeployments.GetGPT56CeresLatest() as the default model
- Key Vault override allows only trimmed, case-insensitive matches for 'gpt-56-ceres-latest' or 'gpt-41-latest'
- Unsupported override values trigger a configuration-anomaly event and fall back to Ceres
- Matching logic, prompts, tools, and telemetry remain unchanged
- Import ordering corrected to maintain CLEAN29 guards and compile cleanly
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 6163 "E-Doc. PO Copilot Matching"](../../objects/codeunit/6163.md), EDocument: modified

## Also merged into

- [#14585](https://github.com/microsoft/BCApps/pull/14585) into `releases/29.x` on 2026-11-27

## Context

- Work items: AB#659854
- Labels: AL: Apps (W1), Team: Integrations
- Systems: integration

## Possibly related

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

- [Use Key Vault Secrets in Business Central Extensions](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-app-key-vault) — possibly related: Using Key Vault Secrets in extensions documents retrieving secrets from Azure Key Vault. (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).
