---
id: post/demiliani-com/13611
type: post
title: "From Chat Completions to Responses API: why Azure OpenAI’s new paradigm changes everything."
summary: Azure OpenAI's Responses API replaces Chat Completions as the recommended approach for new AI projects, offering stateful conversations, better token efficiency, and built-in agentic capabilities. Business Central currently wraps Chat Completions through System.AI, but this architecture can evolve to support Responses API for more complex scenarios involving long conversations, autonomous agents, and background execution.
tier: community
language: en
tags:
  - azure openai
  - responses api
  - chat completions
  - system.ai
  - agentic
  - ai architecture
  - stateful conversations
system: copilot
review:
  state: reviewed
  by: opus
  at: "2026-10-08T01:55:37.092Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-post: 1
  input_hash: 8c9c8fc978f4c0595d2004cd323a3f1745382d74ef5a7f0bb7eeebb707a1bae5
evidence:
  - kind: blog
    url: https://demiliani.com/2026/04/16/from-chat-completions-to-responses-api-why-azure-openais-new-paradigm-changes-everything/
    title: "From Chat Completions to Responses API: why Azure OpenAI’s new paradigm changes everything."
    date: "2026-04-16"
    commit: null
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/7763
    - object/codeunit/7761
    - object/codeunit/7770
    - object/enum/7773
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
post_id: "13611"
source_id: demiliani-com
source_name: Stefano Demiliani
url: https://demiliani.com/2026/04/16/from-chat-completions-to-responses-api-why-azure-openais-new-paradigm-changes-everything/
published_at: "2026-04-16T09:54:16.000Z"
author: Stefano Demiliani
full_text: false
words: 2827
quotes: []
code_objects_mentioned:
  - codeunit AzureOpenAI
  - codeunit AOAI Chat Messages
  - codeunit AOAI Chat Completion Params
  - codeunit AOAI Operation Response
  - enum AOAI Model Type
systems:
  - copilot
  - integration
  - development
versions_mentioned: []
preview:
  embeddable: true
  frame_url: https://demiliani.com/2026/04/16/from-chat-completions-to-responses-api-why-azure-openais-new-paradigm-changes-everything/embed/
  image: https://demiliani.com/wp-content/uploads/2026/04/contextwindow.png
  image_alt: null
  image_w: 1072
  image_h: 1134
  site_name: Stefano Demiliani
  favicon: https://demiliani.com/wp-content/uploads/2022/09/sd_wordpress_logo.png?w=32
  probed_at: "2026-10-07T11:50:44.619Z"
---

# From Chat Completions to Responses API: why Azure OpenAI’s new paradigm changes everything.

[Read the post](https://demiliani.com/2026/04/16/from-chat-completions-to-responses-api-why-azure-openais-new-paradigm-changes-everything/) · Stefano Demiliani (Stefano Demiliani, MVP) · 2026-04-16 · 2827 words · tier community · reviewed (checked by Opus)

> Azure OpenAI's Responses API replaces Chat Completions as the recommended approach for new AI projects, offering stateful conversations, better token efficiency, and built-in agentic capabilities. Business Central currently wraps Chat Completions through System.AI, but this architecture can evolve to support Responses API for more complex scenarios involving long conversations, autonomous agents, and background execution.

## Key points

- Responses API stores conversation state server-side with unique IDs, eliminating the need to resend full history on each turn, reducing token costs and improving reliability.
- Responses API is agentic by default, enabling models to call multiple tools and external services within a single request, unlike Chat Completions which requires manual orchestration.
- Business Central's System.AI namespace currently wraps Chat Completions and provides guardrails, telemetry, and managed resources that make it worth using today, but the underlying design is extensible for future Responses API support.
- Responses API supports background execution mode for long-running tasks, context compaction for extremely long interactions, and richer streaming events, capabilities unavailable in Chat Completions.
- Chat Completions requires developers to manage conversation state client-side, causing quadratic cost growth as conversation length increases, while Responses API keeps state on the server.

## AL objects mentioned

As named in the post. A name that matches one object page by exact type and name links to it; the others stay as named.

- codeunit "AzureOpenAI"
- [codeunit 7763 "AOAI Chat Messages"](../../objects/codeunit/7763.md)
- [codeunit 7761 "AOAI Chat Completion Params"](../../objects/codeunit/7761.md)
- [codeunit 7770 "AOAI Operation Response"](../../objects/codeunit/7770.md)
- [enum 7773 "AOAI Model Type"](../../objects/enum/7773.md)

Not found in BC28-30: codeunit "AzureOpenAI".

## Context

- Features: Responses API, Chat Completions API, stateful conversations, agentic tool calling, context compaction, background execution mode, server-side state management, response lifecycle management

Source: Stefano Demiliani, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.
