Skip to content

Commit

Permalink
.Net: Add new 2024-09-01-preview version (#9809)
Browse files Browse the repository at this point in the history
### Motivation and Context

Add new version `2024-09-01-preview` option available in Azure.AI.OpenAI
2.0.0-beta.2
  • Loading branch information
RogerBarreto authored Nov 25, 2024
1 parent c5beb8a commit 5adf59d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1541,6 +1541,10 @@ public async Task GetStreamingChatMessageContentsWithFunctionCallAndEmptyArgumen
{ "V2024_10_01_PREVIEW", "2024-10-01-preview" },
{ "2024_10_01_Preview", "2024-10-01-preview" },
{ "2024-10-01-preview", "2024-10-01-preview" },
{ "V2024_09_01_preview", "2024-09-01-preview" },
{ "V2024_09_01_PREVIEW", "2024-09-01-preview" },
{ "2024_09_01_Preview", "2024-09-01-preview" },
{ "2024-09-01-preview", "2024-09-01-preview" },
{ "V2024_08_01_preview", "2024-08-01-preview" },
{ "V2024_08_01_PREVIEW", "2024-08-01-preview" },
{ "2024_08_01_Preview", "2024-08-01-preview" },
Expand All @@ -1549,6 +1553,7 @@ public async Task GetStreamingChatMessageContentsWithFunctionCallAndEmptyArgumen
{ "2024_06_01", "2024-06-01" },
{ "2024-06-01", "2024-06-01" },
{ AzureOpenAIClientOptions.ServiceVersion.V2024_10_01_Preview.ToString(), null },
{ AzureOpenAIClientOptions.ServiceVersion.V2024_09_01_Preview.ToString(), null },
{ AzureOpenAIClientOptions.ServiceVersion.V2024_08_01_Preview.ToString(), null },
{ AzureOpenAIClientOptions.ServiceVersion.V2024_06_01.ToString(), null }
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ internal static AzureOpenAIClientOptions GetAzureOpenAIClientOptions(HttpClient?
{
"2024-06-01" or "V2024_06_01" or "2024_06_01" => AzureOpenAIClientOptions.ServiceVersion.V2024_06_01,
"2024-08-01-PREVIEW" or "V2024_08_01_PREVIEW" or "2024_08_01_PREVIEW" => AzureOpenAIClientOptions.ServiceVersion.V2024_08_01_Preview,
"2024-09-01-PREVIEW" or "V2024_09_01_PREVIEW" or "2024_09_01_PREVIEW" => AzureOpenAIClientOptions.ServiceVersion.V2024_09_01_Preview,
"2024-10-01-PREVIEW" or "V2024_10_01_PREVIEW" or "2024_10_01_PREVIEW" => AzureOpenAIClientOptions.ServiceVersion.V2024_10_01_Preview,

_ => throw new NotSupportedException($"The service version '{serviceVersion}' is not supported.")
};
}
Expand Down

0 comments on commit 5adf59d

Please sign in to comment.