Codeunit 7772 Azure OpenAI Impl
src/System Application/App/AI/src/Azure OpenAI/AzureOpenAIImpl.Codeunit.al28 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT
IsEnabled line 66
- 68callsCodeunit 7774 Copilot Capability Impl IsCapabilityEnabled
IsEnabled line 71
- 73callsCodeunit 7774 Copilot Capability Impl IsCapabilityEnabled
SetCopilotCapability line 76
- 78callsCodeunit 7774 Copilot Capability Impl SetCopilotCapability
IsAuthorizationConfigured line 81
- 85callsCodeunit 7767 AOAI Authorization IsConfigured
- 87callsCodeunit 7767 AOAI Authorization IsConfigured
- 89callsCodeunit 7767 AOAI Authorization IsConfigured
IsInitialized line 95
- 97callsIsEnabled
- 97callsIsAuthorizationConfigured
GetFastPrompt line 101
- 112callsCodeunit 7774 Copilot Capability Impl CheckCapabilitySet
- 113callsCodeunit 7774 Copilot Capability Impl CheckEnabled
- 115callsCheckAuthorizationEnabled
- 116callsCodeunit 7774 Copilot Capability Impl AddTelemetryCustomDimensions
- 118callsCodeunit 7767 AOAI Authorization GetResourceUtilization
- 120callsCodeunit 7767 AOAI Authorization GetManagedResourceDeployment
- 126callsCodeunit 7774 Copilot Capability Impl GetCapabilityName
- 135callsCodeunit 7789 AOAI Fast Prompt Response Set
- 138callsCodeunit 8703 Feature Telemetry LogError
- 138callsGetAzureOpenAICategory
- 142callsCodeunit 7789 AOAI Fast Prompt Response Set
- 144callsCodeunit 7789 AOAI Fast Prompt Response IsFastPrompt
- 144callsCodeunit 7789 AOAI Fast Prompt Response GetTemplate
- 145callsCodeunit 8703 Feature Telemetry LogUsage
- 145callsGetAzureOpenAICategory
SetAuthorization line 152
- 156callsCodeunit 7767 AOAI Authorization SetFirstPartyAuthorization
- 158callsCodeunit 7767 AOAI Authorization SetFirstPartyAuthorization
- 160callsCodeunit 7767 AOAI Authorization SetFirstPartyAuthorization
SetAuthorization line 167
- 171callsCodeunit 7767 AOAI Authorization SetSelfManagedAuthorization
- 173callsCodeunit 7767 AOAI Authorization SetSelfManagedAuthorization
- 175callsCodeunit 7767 AOAI Authorization SetSelfManagedAuthorization
SetManagedResourceAuthorization line 183
- 187callsCodeunit 7767 AOAI Authorization SetMicrosoftManagedAuthorization
- 189callsCodeunit 7767 AOAI Authorization SetMicrosoftManagedAuthorization
- 191callsCodeunit 7767 AOAI Authorization SetMicrosoftManagedAuthorization
SetManagedResourceAuthorization line 209
- 213callsCodeunit 7767 AOAI Authorization SetMicrosoftManagedAuthorization
- 215callsCodeunit 7767 AOAI Authorization SetMicrosoftManagedAuthorization
- 217callsCodeunit 7767 AOAI Authorization SetMicrosoftManagedAuthorization
GenerateTextCompletion line 226
- 230callsGetTextMetaprompt
GenerateTextCompletion line 234
- 236callsGetTextMetaprompt
GenerateTextCompletion line 248
- 255callsGuiCheck
- 257callsCodeunit 7774 Copilot Capability Impl CheckCapabilitySet
- 258callsCodeunit 7774 Copilot Capability Impl CheckEnabled
- 259callsCheckAuthorizationEnabled
- 261callsCodeunit 7774 Copilot Capability Impl AddTelemetryCustomDimensions
- 262callsCheckTextCompletionMetaprompt
- 265callsRemoveProhibitedCharacters
- 267callsCodeunit 7765 AOAI Text Completion Params AddCompletionsParametersToPayload
- 271callsSendTokenCountTelemetry
- 271callsCodeunit 7759 AOAI Token GetGPT4TokenCount
- 271callsCodeunit 7759 AOAI Token GetGPT4TokenCount
- 273callsSendRequest
- 274callsCodeunit 8703 Feature Telemetry LogError
- 274callsGetAzureOpenAICategory
- 278callsCodeunit 8703 Feature Telemetry LogUsage
- 278callsGetAzureOpenAICategory
- 279callsCodeunit 7770 AOAI Operation Response GetResult
GenerateEmbeddings line 285
- 291callsGuiCheck
- 293callsCodeunit 7774 Copilot Capability Impl CheckCapabilitySet
- 294callsCodeunit 7774 Copilot Capability Impl CheckEnabled
- 295callsCheckAuthorizationEnabled
- 300callsCodeunit 7774 Copilot Capability Impl AddTelemetryCustomDimensions
- 301callsSendTokenCountTelemetry
- 301callsCodeunit 7759 AOAI Token GetAdaTokenCount
- 302callsSendRequest
- 303callsCodeunit 8703 Feature Telemetry LogError
- 303callsGetAzureOpenAICategory
- 307callsCodeunit 8703 Feature Telemetry LogUsage
- 307callsGetAzureOpenAICategory
- 308callsProcessEmbeddingResponse
ProcessEmbeddingResponse line 312, local
- 319callsCodeunit 7770 AOAI Operation Response GetResult
GenerateChatCompletion line 336
- 348callsGuiCheck
- 350callsCodeunit 7767 AOAI Authorization GetResourceUtilization
- 352callsCodeunit 7763 AOAI Chat Messages CheckCompatibilityWithModel
- 352callsCodeunit 7767 AOAI Authorization GetManagedResourceDeployment
- 353callsCodeunit 7774 Copilot Capability Impl CheckCapabilitySet
- 354callsCodeunit 7774 Copilot Capability Impl CheckEnabled
- 355callsCheckAuthorizationEnabled
- 356callsCodeunit 7774 Copilot Capability Impl AddTelemetryCustomDimensions
- 358callsCodeunit 7761 AOAI Chat Completion Params AddChatCompletionsParametersToPayload
- 360callsCodeunit 7761 AOAI Chat Completion Params GetAOAIPolicyParams
- 361callsCodeunit 7787 AOAI Policy Params IsDefaultPolicy
- 363callsCodeunit 7787 AOAI Policy Params GetAOAIPolicy
- 365callsCodeunit 7763 AOAI Chat Messages AssembleHistory
- 367callsCodeunit 7763 AOAI Chat Messages ToolsExists
- 368callsCodeunit 7763 AOAI Chat Messages AssembleTools
- 370callsCodeunit 7763 AOAI Chat Messages GetToolChoice
- 379callsCodeunit 8711 Telemetry LogMessage
- 382callsCheckJsonModeCompatibility
- 386callsSendTokenCountTelemetry
- 387callsSendRequest
- 388callsCodeunit 8703 Feature Telemetry LogError
- 388callsGetAzureOpenAICategory
- 392callsProcessChatCompletionResponse
- 394callsCodeunit 8703 Feature Telemetry LogUsage
- 394callsGetAzureOpenAICategory
- 396callsCodeunit 7770 AOAI Operation Response GetFunctionResponses
- 396callsCodeunit 7763 AOAI Chat Messages GetToolInvokePreference
ProcessChatCompletionResponse line 428, local
- 438callsCodeunit 7770 AOAI Operation Response GetResult
- 441callsCodeunit 7763 AOAI Chat Messages AddAssistantMessage
- 443callsCodeunit 7763 AOAI Chat Messages AddToolCalls
- 445callsProcessToolCalls
- 446callsCodeunit 7758 AOAI Function Response SetFunctionCallingResponse
- 447callsCodeunit 7770 AOAI Operation Response AddFunctionResponse
- 450callsCodeunit 7774 Copilot Capability Impl AddTelemetryCustomDimensions
- 451callsCodeunit 7770 AOAI Operation Response GetFunctionResponses
- 452callsCodeunit 7758 AOAI Function Response IsSuccess
- 453callsCodeunit 8703 Feature Telemetry LogError
- 453callsGetAzureOpenAICategory
- 453callsCodeunit 7758 AOAI Function Response GetFunctionName
- 453callsCodeunit 7758 AOAI Function Response GetError
- 453callsCodeunit 7758 AOAI Function Response GetErrorCallstack
- 455callsCodeunit 7763 AOAI Chat Messages GetToolInvokePreference
- 456callsCodeunit 7770 AOAI Operation Response AppendFunctionResponsesToChatMessages
- 458callsCodeunit 8711 Telemetry LogMessage
ProcessToolCalls line 462, local
ProcessFunctionCall line 483, local
- 512callsCodeunit 7763 AOAI Chat Messages GetFunctionTool
- 513callsCodeunit 7763 AOAI Chat Messages GetToolInvokePreference
- 514callsTryExecuteFunction
- 515callsCodeunit 7758 AOAI Function Response SetFunctionCallingResponse
- 516callsCodeunit 7770 AOAI Operation Response AddFunctionResponse
- 519callsCodeunit 7758 AOAI Function Response SetFunctionCallingResponse
- 520callsCodeunit 7770 AOAI Operation Response AddFunctionResponse
- 524callsCodeunit 7758 AOAI Function Response SetFunctionCallingResponse
- 525callsCodeunit 7770 AOAI Operation Response AddFunctionResponse
- 529callsCodeunit 7758 AOAI Function Response SetFunctionCallingResponse
- 530callsCodeunit 7770 AOAI Operation Response AddFunctionResponse
SendRequest line 543, local
- 555callsIsBillingTypeAuthorized
- 556callsCodeunit 7774 Copilot Capability Impl GetCapabilityName
- 556callsCodeunit 7774 Copilot Capability Impl GetCopilotBillingType
- 557callsCodeunit 7770 AOAI Operation Response SetOperationResponse
- 561callsCodeunit 7767 AOAI Authorization GetResourceUtilization
- 563callsCodeunit 7767 AOAI Authorization GetManagedResourceDeployment
- 565callsCodeunit 7767 AOAI Authorization GetManagedResourceDeployment
- 567callsCodeunit 7767 AOAI Authorization GetEndpoint
- 567callsCodeunit 7767 AOAI Authorization GetDeployment
- 567callsCodeunit 7767 AOAI Authorization GetApiKey
- 570callsCodeunit 7774 Copilot Capability Impl GetCapabilityName
- 580callsCodeunit 7770 AOAI Operation Response SetOperationResponse
- 587callsCodeunit 7770 AOAI Operation Response SetOperationResponse
- 589callsCodeunit 7770 AOAI Operation Response GetStatusCode
- 590callsCodeunit 7757 Copilot Notifications CheckAIQuotaAndShowNotification
SendTokenCountTelemetry line 596, local
- 598callsCodeunit 8711 Telemetry LogMessage
GuiCheck line 601, local
- 605callsCodeunit 7767 AOAI Authorization GetResourceUtilization
- 608callsCodeunit 4030 Client Type Management GetCurrentClientType
- 611callsCodeunit 7767 AOAI Authorization GetResourceUtilization
CheckAuthorizationEnabled line 615, local
- 617callsCodeunit 7767 AOAI Authorization IsConfigured
RemoveProhibitedCharacters line 622
- 630callsCodeunit 8711 Telemetry LogMessage
GetTextMetaprompt line 637, internal
- 644callsCodeunit 457 Environment Information IsSaaSInfrastructure
- 647callsCodeunit 2200 Azure Key Vault GetAzureKeyVaultSecret
- 648callsCodeunit 8711 Telemetry LogMessage
CheckTextCompletionMetaprompt line 657, local
- 662callsCodeunit 8703 Feature Telemetry LogError
- 662callsGetAzureOpenAICategory
CreatePrivacyNoticeRegistrations line 699, local
- 702callsGetAzureOpenAICategory
- 703callsGetServiceName
- 704writesTable 2000000237 Privacy Notice Insert
IsBillingTypeAuthorized line 707
- 711callsCodeunit 7774 Copilot Capability Impl GetCopilotBillingType
- 712callsCodeunit 7774 Copilot Capability Impl IsPublisherMicrosoft
- 713callsCodeunit 7767 AOAI Authorization GetResourceUtilization
- 718callsCodeunit 7767 AOAI Authorization GetResourceUtilization
- 720callsCodeunit 7767 AOAI Authorization GetResourceUtilization
- 724callsCodeunit 7774 Copilot Capability Impl IsProductionEnvironment
- 732callsCodeunit 7767 AOAI Authorization GetResourceUtilization