Codeunit 7768 AOAI Deployments, source in 24
Source242526272829metadata in 24
src/System Application/App/AI/src/Azure OpenAI/AOAIDeployments.Codeunit.al102 lines, Copyright (c) Microsoft Corporation. MIT
// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
namespace System.AI;
/// <summary>
/// This codeunit is used to get the AOAI deployment names.
/// </summary>
codeunit 7768 "AOAI Deployments"
{
Access = Public;
InherentEntitlements = X;
InherentPermissions = X;
var
AOAIDeploymentsImpl: Codeunit "AOAI Deployments Impl";
/// <summary>
/// Returns the name of the AOAI deployment model Turbo 0301.
/// </summary>
/// <returns>The deployment name.</returns>
procedure GetTurbo0301(): Text
var
CallerModuleInfo: ModuleInfo;
begin
NavApp.GetCallerModuleInfo(CallerModuleInfo);
exit(AOAIDeploymentsImpl.GetTurbo0301(CallerModuleInfo));
end;
/// <summary>
/// Returns the name of the AOAI deployment model GPT4 0613.
/// </summary>
/// <returns>The deployment name.</returns>
procedure GetGPT40613(): Text
var
CallerModuleInfo: ModuleInfo;
begin
NavApp.GetCallerModuleInfo(CallerModuleInfo);
exit(AOAIDeploymentsImpl.GetGPT40613(CallerModuleInfo));
end;
/// <summary>
/// Returns the name of the AOAI deployment model Turbo 0613.
/// </summary>
/// <returns>The deployment name.</returns>
procedure GetTurbo0613(): Text
var
CallerModuleInfo: ModuleInfo;
begin
NavApp.GetCallerModuleInfo(CallerModuleInfo);
exit(AOAIDeploymentsImpl.GetTurbo0613(CallerModuleInfo));
end;
/// <summary>
/// Returns the name of the latest AOAI deployment model of GPT3.5 Turbo.
/// </summary>
/// <returns>The deployment name.</returns>
procedure GetGPT35TurboLatest(): Text
var
CallerModuleInfo: ModuleInfo;
begin
NavApp.GetCallerModuleInfo(CallerModuleInfo);
exit(AOAIDeploymentsImpl.GetGPT35TurboLatest(CallerModuleInfo));
end;
/// <summary>
/// Returns the name of preview AOAI deployment model of GPT3.5 Turbo.
/// </summary>
/// <returns>The deployment name.</returns>
procedure GetGPT35TurboPreview(): Text
var
CallerModuleInfo: ModuleInfo;
begin
NavApp.GetCallerModuleInfo(CallerModuleInfo);
exit(AOAIDeploymentsImpl.GetGPT35TurboPreview(CallerModuleInfo));
end;
/// <summary>
/// Returns the name of the latest AOAI deployment model of GPT4.
/// </summary>
/// <returns>The deployment name.</returns>
procedure GetGPT4Latest(): Text
var
CallerModuleInfo: ModuleInfo;
begin
NavApp.GetCallerModuleInfo(CallerModuleInfo);
exit(AOAIDeploymentsImpl.GetGPT4Latest(CallerModuleInfo));
end;
/// <summary>
/// Returns the name of preview AOAI deployment model of GPT4.
/// </summary>
/// <returns>The deployment name.</returns>
procedure GetGPT4Preview(): Text
var
CallerModuleInfo: ModuleInfo;
begin
NavApp.GetCallerModuleInfo(CallerModuleInfo);
exit(AOAIDeploymentsImpl.GetGPT4Preview(CallerModuleInfo));
end;
}