forked from bterlson/openai-in-typespec
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Azure OpenAI: 2.2.0-beta.1 (2025-01-01-preview label) (#329)
* adding gitattributes to handle line endings * resquish after tooling re-merge * post-merge regen of API, should diff more cleanly now * retarget, retest, squish, disable unsupported things * desquished complete * add a minimal, explicit test for the latest o1 model * improve AOAI parity spec generation (code no-op) * squashed merge for retarget * expose and test a distinct 'update' type for streamed response audio * update readme for streaming accuracy and explanation * 'responseaudio' to 'outputaudio', doc comments and cleaup * PR feedback round * Expose and require ContentModalities for Chat * PR feedback * merge, plus realtime vad create_response * update to 2025-01-01-preview target * minor changelog update; test assets repushed * fix realtime conversation token usage * remove duplicated file after merge * tool updates for new spec peculiarities * small spec accuracy improvements (no code change) * a few more spec accuracy updates (also no code change) * a few more spec accuracy updates (also no code change) * several more versioning accuracy adjustments for the Azure spec * scenario-specific default versioning affordance, test cleanup * re-push assets; unclear why it didn't flush before, but it should work now * no code change: update for spec docs preservation on extended scalar type 'ParallelToolCalls' * update for latest 2025-01-01-preview functionality (files is back) * fix developer message ordering to preserve int stability * minor update, including gitattributes QoL merge from Chris's old PR * prediction now works, so enable it! * incorporate tool update for anonymous array element extraction * merge, apply latest spec and tool updates * PR feedback * minor: flush replicated changes from azure-sdk-for-net stage * PR feedback: new OutputPrediction instead of PredictedContent * merge predicted output change and rename to SourceIP * push assets again (stale file bug) * PR feedback * fix filemocks tests -- 'object': 'list' is required * PR feedback * test merge * address constructor * PR feedback, image test reliability for owls --------- Co-authored-by: chschrae <[email protected]>
- Loading branch information
Showing
69 changed files
with
11,732 additions
and
4,717 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
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
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
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
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
27 changes: 27 additions & 0 deletions
27
.dotnet.azure/sdk/openai/Azure.AI.OpenAI/src/Custom/Chat/UserSecurityContext.cs
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,27 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
namespace Azure.AI.OpenAI; | ||
|
||
/// <summary> User security context contains several parameters that describe the application itself, and the end user that interacts with the application. These fields assist your security operations teams to investigate and mitigate security incidents by providing a comprehensive approach to protecting your AI applications. [Learn more](https://aka.ms/TP4AI/Documentation/EndUserContext) about protecting AI applications using Microsoft Defender for Cloud. </summary> | ||
[CodeGenModel("AzureUserSecurityContext")] | ||
[Experimental("AOAI001")] | ||
public partial class UserSecurityContext | ||
{ | ||
/// <summary> The name of the application. Sensitive personal information should not be included in this field. </summary> | ||
public string ApplicationName { get; set;} | ||
/// <summary> This identifier is the Microsoft Entra ID (formerly Azure Active Directory) user object ID used to authenticate end-users within the generative AI application. Sensitive personal information should not be included in this field. </summary> | ||
public string EndUserId { get; set; } | ||
/// <summary> The Microsoft 365 tenant ID the end user belongs to. It's required when the generative AI application is multitenant. </summary> | ||
public string EndUserTenantId { get; set; } | ||
/// <summary> Captures the original client's IP address. </summary> | ||
[CodeGenMember("SourceIp")] | ||
public string SourceIP { get; set; } | ||
|
||
public UserSecurityContext() | ||
{ } | ||
} |
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
Oops, something went wrong.