Source AL, 330 lines
src/System Application/App/AI/src/Azure OpenAI/AzureOpenAI.Codeunit.allines 10 to 25 of 330, Copyright (c) Microsoft Corporation. MIT
codeunit 7771 "Azure OpenAI"{ Access = Public; InherentEntitlements = X; InherentPermissions = X; var AzureOpenAIImpl: Codeunit "Azure OpenAI Impl"; /// <summary> /// Checks if the Azure OpenAI API is enabled for the environment and if the capability is active on the environment. /// </summary> /// <param name="CopilotCapability">The copilot capability to check.</param> /// <returns>True if API and capability is enabled for environment.</returns> procedure IsEnabled(CopilotCapability: Enum "Copilot Capability"): Boolean var
All 330 lines
Public procedures 19 in 29
| IsEnabled(CopilotCapability: Enum "Copilot Capability"): Boolean | new in 23 |
| IsEnabled(CopilotCapability: Enum "Copilot Capability"; Silent: Boolean): Boolean | new in 23 |
| IsAuthorizationConfigured(ModelType: Enum "AOAI Model Type"): Boolean | new in 23 |
| IsInitialized(CopilotCapability: Enum "Copilot Capability"; ModelType: Enum "AOAI Model Type"): Boolean | new in 23 |
| SetAuthorization(ModelType: Enum "AOAI Model Type"; Endpoint: Text; Deployment: Text; ApiKey: SecretText) | new in 23 |
| SetAuthorization(ModelType: Enum "AOAI Model Type"; Deployment: Text) | new in 23 |
All 20 procedures in 23-29
Changes 5 in 29
| GenerateTextCompletion(Prompt: SecretText; var AOAIOperationResponse: Codeunit "AOAI Operation Response"): Text | new in 23 |
| marked Pending, tag 29.0: Text completion models are retired by Azure OpenAI. Use GenerateChatCompletion instead. |
| GenerateTextCompletion(Prompt: SecretText; AOAICompletionParams: Codeunit "AOAI Text Completion Params"; var AOAIOperationResponse: Codeunit "AOAI Operation Response"): Text | new in 23 |
| marked Pending, tag 29.0: Text completion models are retired by Azure OpenAI. Use GenerateChatCompletion instead. |
| GenerateTextCompletion(Metaprompt: SecretText; Prompt: SecretText; var AOAIOperationResponse: Codeunit "AOAI Operation Response"): Text | new in 23 |
| marked Pending, tag 29.0: Text completion models are retired by Azure OpenAI. Use GenerateChatCompletion instead. |
| GenerateTextCompletion(Metaprompt: SecretText; Prompt: SecretText; AOAICompletionParams: Codeunit "AOAI Text Completion Params"; var AOAIOperationResponse: Codeunit "AOAI Operation Response"): Text | new in 23 |
| marked Pending, tag 29.0: Text completion models are retired by Azure OpenAI. Use GenerateChatCompletion instead. |
| GetFastPrompt(ConfigKey: Text; var Response: Codeunit "AOAI Fast Prompt Response"): Boolean | new in 29 |
| added |
All 13 changes in 23-29