-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[24.x][Copilot] Add authorization interface for managed resources + U…
…se managed deployment instead of deployment when setting first party authorization (#1294) <!-- Thank you for submitting a Pull Request. If you're new to contributing to BCApps please read our pull request guideline below * https://github.com/microsoft/BCApps/Contributing.md --> #### Summary <!-- Provide a general summary of your changes --> Cherry-picks [[Copilot] Add authorization interface for managed resources](a78f587) and [[Copilot] Use managed deployment instead of deployment when setting first party authorization](6daca64) and [[Copilot] First party authorization throws error when checking if configured](#1295) #### Work Item(s) <!-- Add the issue number here after the #. The issue needs to be open and approved. Submitting PRs with no linked issues or unapproved issues is highly discouraged. --> Fixes [AB#537820](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/537820)
- Loading branch information
Showing
4 changed files
with
157 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
src/System Application/App/AI/src/Azure OpenAI/AOAIResourceUtilization.Enum.al
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// ------------------------------------------------------------------------------------------------ | ||
// 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> | ||
/// The supported utilization models for Azure OpenAI resources. | ||
/// </summary> | ||
enum 7771 "AOAI Resource Utilization" | ||
{ | ||
Access = Internal; | ||
Extensible = false; | ||
|
||
/// <summary> | ||
/// The first party utilization (only available for Microsoft first party apps). | ||
/// </summary> | ||
value(0; "First Party") | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// The Microsoft managed utilization (the resource used for the LLM call is provided and managed by Microsoft). | ||
/// </summary> | ||
/// <remarks>A valid resource is still required to validate that the developer has access to Azure OpenAI.</remarks> | ||
value(1; "Microsoft Managed") | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// The Self-managed utilization (the resource used for the LLM call is the one provided by the developer). | ||
/// </summary> | ||
value(2; "Self-Managed") | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters