Skip to content

Conversation

@qutreson
Copy link
Contributor

@qutreson qutreson commented Jan 30, 2026

Summary

Issue 1:
We don't surface billing setup issues because an Error is raised within the try function and the operation result is never sent on the response codeunit passed by var. So the error message is never surfaced. Changing the SendRequest to return the error first.

image

Issue 2:
AOAI policies would default to ConveservativeWithXpia which generally does not exist for self managed resources since that's something dedicated in our copilot service. Changing the SendChatCompletionRequest logic to not pass any XPIA policy for self managed resources if the policy are still the default one.

Work Item(s)

Fixes AB#620032, AB#615189

@qutreson qutreson requested a review from a team as a code owner January 30, 2026 07:09
@github-actions github-actions bot added this to the Version 28.0 milestone Jan 30, 2026

AzureOpenAIPolicy := AOAIChatCompletionParams.GetAOAIPolicyParams().GetAOAIPolicy();
AOAIPolicyParams := AOAIChatCompletionParams.GetAOAIPolicyParams();
AzureOpenAIPolicy := (ChatCompletionsAOAIAuthorization.GetResourceUtilization() = Enum::"AOAI Resource Utilization"::"Self-Managed") and AOAIPolicyParams.IsDefaultPolicy()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd refactor this. I understand we added inline if/else but it also makes it harder to read and isn't a pattern for us.

policy = AOAIPolicyParams.GetAOAIPolicy()
if default + self-managed then
policy = ''

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants