---
title: "Codeunit 7765 AOAI Text Completion Params, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/7765-aoai-text-completion-params/points/
object: https://jonas-paprotka.de/ref/codeunit/7765-aoai-text-completion-params/
app: "System Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/7765-aoai-text-completion-params/source/
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
license: "Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/"
---

# Codeunit 7765 AOAI Text Completion Params, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/7765-aoai-text-completion-params/points/

13 procedures and triggers with a step in src/System Application/App/AI/src/Azure OpenAI/Text Completion/AOAITextCompletionParams.Codeunit.al, in source order, read from the text, not from a run.

## GetMaxTokens

[Line 29](https://jonas-paprotka.de/ref/codeunit/7765-aoai-text-completion-params/source/#L29).

- [31](https://jonas-paprotka.de/ref/codeunit/7765-aoai-text-completion-params/source/#L31) calls [Codeunit 7766 AOAI TextCompletionParams Impl](https://jonas-paprotka.de/ref/codeunit/7766-aoai-textcompletionparams-impl/) `GetMaxTokens`

## GetTemperature

[Line 38](https://jonas-paprotka.de/ref/codeunit/7765-aoai-text-completion-params/source/#L38).

- [40](https://jonas-paprotka.de/ref/codeunit/7765-aoai-text-completion-params/source/#L40) calls [Codeunit 7766 AOAI TextCompletionParams Impl](https://jonas-paprotka.de/ref/codeunit/7766-aoai-textcompletionparams-impl/) `GetTemperature`

## GetTopP

[Line 47](https://jonas-paprotka.de/ref/codeunit/7765-aoai-text-completion-params/source/#L47).

- [49](https://jonas-paprotka.de/ref/codeunit/7765-aoai-text-completion-params/source/#L49) calls [Codeunit 7766 AOAI TextCompletionParams Impl](https://jonas-paprotka.de/ref/codeunit/7766-aoai-textcompletionparams-impl/) `GetTopP`

## GetSuffix

[Line 56](https://jonas-paprotka.de/ref/codeunit/7765-aoai-text-completion-params/source/#L56).

- [58](https://jonas-paprotka.de/ref/codeunit/7765-aoai-text-completion-params/source/#L58) calls [Codeunit 7766 AOAI TextCompletionParams Impl](https://jonas-paprotka.de/ref/codeunit/7766-aoai-textcompletionparams-impl/) `GetSuffix`

## GetPresencePenalty

[Line 65](https://jonas-paprotka.de/ref/codeunit/7765-aoai-text-completion-params/source/#L65).

- [67](https://jonas-paprotka.de/ref/codeunit/7765-aoai-text-completion-params/source/#L67) calls [Codeunit 7766 AOAI TextCompletionParams Impl](https://jonas-paprotka.de/ref/codeunit/7766-aoai-textcompletionparams-impl/) `GetPresencePenalty`

## GetFrequencyPenalty

[Line 74](https://jonas-paprotka.de/ref/codeunit/7765-aoai-text-completion-params/source/#L74).

- [76](https://jonas-paprotka.de/ref/codeunit/7765-aoai-text-completion-params/source/#L76) calls [Codeunit 7766 AOAI TextCompletionParams Impl](https://jonas-paprotka.de/ref/codeunit/7766-aoai-textcompletionparams-impl/) `GetFrequencyPenalty`

## SetMaxTokens

[Line 85](https://jonas-paprotka.de/ref/codeunit/7765-aoai-text-completion-params/source/#L85).

- [87](https://jonas-paprotka.de/ref/codeunit/7765-aoai-text-completion-params/source/#L87) calls [Codeunit 7766 AOAI TextCompletionParams Impl](https://jonas-paprotka.de/ref/codeunit/7766-aoai-textcompletionparams-impl/) `SetMaxTokens`

## SetTemperature

[Line 95](https://jonas-paprotka.de/ref/codeunit/7765-aoai-text-completion-params/source/#L95).

- [97](https://jonas-paprotka.de/ref/codeunit/7765-aoai-text-completion-params/source/#L97) calls [Codeunit 7766 AOAI TextCompletionParams Impl](https://jonas-paprotka.de/ref/codeunit/7766-aoai-textcompletionparams-impl/) `SetTemperature`

## SetTopP

[Line 104](https://jonas-paprotka.de/ref/codeunit/7765-aoai-text-completion-params/source/#L104).

- [106](https://jonas-paprotka.de/ref/codeunit/7765-aoai-text-completion-params/source/#L106) calls [Codeunit 7766 AOAI TextCompletionParams Impl](https://jonas-paprotka.de/ref/codeunit/7766-aoai-textcompletionparams-impl/) `SetTopP`

## SetSuffix

[Line 113](https://jonas-paprotka.de/ref/codeunit/7765-aoai-text-completion-params/source/#L113).

- [115](https://jonas-paprotka.de/ref/codeunit/7765-aoai-text-completion-params/source/#L115) calls [Codeunit 7766 AOAI TextCompletionParams Impl](https://jonas-paprotka.de/ref/codeunit/7766-aoai-textcompletionparams-impl/) `SetSuffix`

## SetPresencePenalty

[Line 123](https://jonas-paprotka.de/ref/codeunit/7765-aoai-text-completion-params/source/#L123).

- [125](https://jonas-paprotka.de/ref/codeunit/7765-aoai-text-completion-params/source/#L125) calls [Codeunit 7766 AOAI TextCompletionParams Impl](https://jonas-paprotka.de/ref/codeunit/7766-aoai-textcompletionparams-impl/) `SetPresencePenalty`

## SetFrequencyPenalty

[Line 133](https://jonas-paprotka.de/ref/codeunit/7765-aoai-text-completion-params/source/#L133).

- [135](https://jonas-paprotka.de/ref/codeunit/7765-aoai-text-completion-params/source/#L135) calls [Codeunit 7766 AOAI TextCompletionParams Impl](https://jonas-paprotka.de/ref/codeunit/7766-aoai-textcompletionparams-impl/) `SetFrequencyPenalty`

## AddCompletionsParametersToPayload

[Line 143](https://jonas-paprotka.de/ref/codeunit/7765-aoai-text-completion-params/source/#L143), internal.

- [145](https://jonas-paprotka.de/ref/codeunit/7765-aoai-text-completion-params/source/#L145) calls [Codeunit 7766 AOAI TextCompletionParams Impl](https://jonas-paprotka.de/ref/codeunit/7766-aoai-textcompletionparams-impl/) `AddCompletionsParametersToPayload`

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
