diff --git a/sdk/ai/Azure.AI.Inference/api/Azure.AI.Inference.net8.0.cs b/sdk/ai/Azure.AI.Inference/api/Azure.AI.Inference.net8.0.cs index 36fe0f16532d..83a8003bb26f 100644 --- a/sdk/ai/Azure.AI.Inference/api/Azure.AI.Inference.net8.0.cs +++ b/sdk/ai/Azure.AI.Inference/api/Azure.AI.Inference.net8.0.cs @@ -47,10 +47,10 @@ public static partial class AIInferenceModelFactory } public partial class AzureAIInferenceClientOptions : Azure.Core.ClientOptions { - public AzureAIInferenceClientOptions(Azure.AI.Inference.AzureAIInferenceClientOptions.ServiceVersion version = Azure.AI.Inference.AzureAIInferenceClientOptions.ServiceVersion.V2024_05_01_Preview) { } + public AzureAIInferenceClientOptions(Azure.AI.Inference.AzureAIInferenceClientOptions.ServiceVersion version = Azure.AI.Inference.AzureAIInferenceClientOptions.ServiceVersion.V2025_04_01) { } public enum ServiceVersion { - V2024_05_01_Preview = 1, + V2025_04_01 = 1, } } public partial class ChatChoice : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel diff --git a/sdk/ai/Azure.AI.Inference/api/Azure.AI.Inference.netstandard2.0.cs b/sdk/ai/Azure.AI.Inference/api/Azure.AI.Inference.netstandard2.0.cs index 36fe0f16532d..83a8003bb26f 100644 --- a/sdk/ai/Azure.AI.Inference/api/Azure.AI.Inference.netstandard2.0.cs +++ b/sdk/ai/Azure.AI.Inference/api/Azure.AI.Inference.netstandard2.0.cs @@ -47,10 +47,10 @@ public static partial class AIInferenceModelFactory } public partial class AzureAIInferenceClientOptions : Azure.Core.ClientOptions { - public AzureAIInferenceClientOptions(Azure.AI.Inference.AzureAIInferenceClientOptions.ServiceVersion version = Azure.AI.Inference.AzureAIInferenceClientOptions.ServiceVersion.V2024_05_01_Preview) { } + public AzureAIInferenceClientOptions(Azure.AI.Inference.AzureAIInferenceClientOptions.ServiceVersion version = Azure.AI.Inference.AzureAIInferenceClientOptions.ServiceVersion.V2025_04_01) { } public enum ServiceVersion { - V2024_05_01_Preview = 1, + V2025_04_01 = 1, } } public partial class ChatChoice : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel diff --git a/sdk/ai/Azure.AI.Inference/src/Generated/AzureAIInferenceClientOptions.cs b/sdk/ai/Azure.AI.Inference/src/Generated/AzureAIInferenceClientOptions.cs index 46dcb4716cad..19ad5ae20fdf 100644 --- a/sdk/ai/Azure.AI.Inference/src/Generated/AzureAIInferenceClientOptions.cs +++ b/sdk/ai/Azure.AI.Inference/src/Generated/AzureAIInferenceClientOptions.cs @@ -13,13 +13,13 @@ namespace Azure.AI.Inference /// Client options for Azure.AI.Inference library clients. public partial class AzureAIInferenceClientOptions : ClientOptions { - private const ServiceVersion LatestVersion = ServiceVersion.V2024_05_01_Preview; + private const ServiceVersion LatestVersion = ServiceVersion.V2025_04_01; /// The version of the service to use. public enum ServiceVersion { - /// Service version "2024-05-01-preview". - V2024_05_01_Preview = 1, + /// Service version "2025-04-01". + V2025_04_01 = 1, } internal string Version { get; } @@ -29,7 +29,7 @@ public AzureAIInferenceClientOptions(ServiceVersion version = LatestVersion) { Version = version switch { - ServiceVersion.V2024_05_01_Preview => "2024-05-01-preview", + ServiceVersion.V2025_04_01 => "2025-04-01", _ => throw new NotSupportedException() }; } diff --git a/sdk/ai/Azure.AI.Inference/src/Generated/Docs/ChatCompletionsClient.xml b/sdk/ai/Azure.AI.Inference/src/Generated/Docs/ChatCompletionsClient.xml index 572d47b762f2..fe094fd8a451 100644 --- a/sdk/ai/Azure.AI.Inference/src/Generated/Docs/ChatCompletionsClient.xml +++ b/sdk/ai/Azure.AI.Inference/src/Generated/Docs/ChatCompletionsClient.xml @@ -11,7 +11,7 @@ ChatCompletionsClient client = new ChatCompletionsClient(endpoint, credential); Response response = await client.GetModelInfoAsync(); ]]> -This sample shows how to call GetModelInfoAsync. +This sample shows how to call GetModelInfoAsync with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); @@ -30,7 +30,7 @@ ChatCompletionsClient client = new ChatCompletionsClient(endpoint, credential); Response response = client.GetModelInfo(); ]]> -This sample shows how to call GetModelInfo. +This sample shows how to call GetModelInfo with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); @@ -54,7 +54,7 @@ Console.WriteLine(result.GetProperty("model_name").ToString()); Console.WriteLine(result.GetProperty("model_type").ToString()); Console.WriteLine(result.GetProperty("model_provider_name").ToString()); ]]> -This sample shows how to call GetModelInfoAsync and parse the result. +This sample shows how to call GetModelInfoAsync with all parameters and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); @@ -83,7 +83,7 @@ Console.WriteLine(result.GetProperty("model_name").ToString()); Console.WriteLine(result.GetProperty("model_type").ToString()); Console.WriteLine(result.GetProperty("model_provider_name").ToString()); ]]> -This sample shows how to call GetModelInfo and parse the result. +This sample shows how to call GetModelInfo with all parameters and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); diff --git a/sdk/ai/Azure.AI.Inference/src/Generated/Docs/EmbeddingsClient.xml b/sdk/ai/Azure.AI.Inference/src/Generated/Docs/EmbeddingsClient.xml index 54f0260f0b6b..907325c38057 100644 --- a/sdk/ai/Azure.AI.Inference/src/Generated/Docs/EmbeddingsClient.xml +++ b/sdk/ai/Azure.AI.Inference/src/Generated/Docs/EmbeddingsClient.xml @@ -11,7 +11,7 @@ EmbeddingsClient client = new EmbeddingsClient(endpoint, credential); Response response = await client.GetModelInfoAsync(); ]]> -This sample shows how to call GetModelInfoAsync. +This sample shows how to call GetModelInfoAsync with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); @@ -30,7 +30,7 @@ EmbeddingsClient client = new EmbeddingsClient(endpoint, credential); Response response = client.GetModelInfo(); ]]> -This sample shows how to call GetModelInfo. +This sample shows how to call GetModelInfo with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); @@ -54,7 +54,7 @@ Console.WriteLine(result.GetProperty("model_name").ToString()); Console.WriteLine(result.GetProperty("model_type").ToString()); Console.WriteLine(result.GetProperty("model_provider_name").ToString()); ]]> -This sample shows how to call GetModelInfoAsync and parse the result. +This sample shows how to call GetModelInfoAsync with all parameters and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); @@ -83,7 +83,7 @@ Console.WriteLine(result.GetProperty("model_name").ToString()); Console.WriteLine(result.GetProperty("model_type").ToString()); Console.WriteLine(result.GetProperty("model_provider_name").ToString()); ]]> -This sample shows how to call GetModelInfo and parse the result. +This sample shows how to call GetModelInfo with all parameters and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); diff --git a/sdk/ai/Azure.AI.Inference/src/Generated/Docs/ImageEmbeddingsClient.xml b/sdk/ai/Azure.AI.Inference/src/Generated/Docs/ImageEmbeddingsClient.xml index 280a6ad03aa7..987a74abbff0 100644 --- a/sdk/ai/Azure.AI.Inference/src/Generated/Docs/ImageEmbeddingsClient.xml +++ b/sdk/ai/Azure.AI.Inference/src/Generated/Docs/ImageEmbeddingsClient.xml @@ -11,7 +11,7 @@ ImageEmbeddingsClient client = new ImageEmbeddingsClient(endpoint, credential); Response response = await client.GetModelInfoAsync(); ]]> -This sample shows how to call GetModelInfoAsync. +This sample shows how to call GetModelInfoAsync with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); @@ -30,7 +30,7 @@ ImageEmbeddingsClient client = new ImageEmbeddingsClient(endpoint, credential); Response response = client.GetModelInfo(); ]]> -This sample shows how to call GetModelInfo. +This sample shows how to call GetModelInfo with all parameters. "); AzureKeyCredential credential = new AzureKeyCredential(""); @@ -54,7 +54,7 @@ Console.WriteLine(result.GetProperty("model_name").ToString()); Console.WriteLine(result.GetProperty("model_type").ToString()); Console.WriteLine(result.GetProperty("model_provider_name").ToString()); ]]> -This sample shows how to call GetModelInfoAsync and parse the result. +This sample shows how to call GetModelInfoAsync with all parameters and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); @@ -83,7 +83,7 @@ Console.WriteLine(result.GetProperty("model_name").ToString()); Console.WriteLine(result.GetProperty("model_type").ToString()); Console.WriteLine(result.GetProperty("model_provider_name").ToString()); ]]> -This sample shows how to call GetModelInfo and parse the result. +This sample shows how to call GetModelInfo with all parameters and parse the result. "); AzureKeyCredential credential = new AzureKeyCredential(""); diff --git a/sdk/ai/Azure.AI.Inference/tests/Generated/Samples/Samples_ChatCompletionsClient.cs b/sdk/ai/Azure.AI.Inference/tests/Generated/Samples/Samples_ChatCompletionsClient.cs index b52f3fc3727f..dea6b98defa5 100644 --- a/sdk/ai/Azure.AI.Inference/tests/Generated/Samples/Samples_ChatCompletionsClient.cs +++ b/sdk/ai/Azure.AI.Inference/tests/Generated/Samples/Samples_ChatCompletionsClient.cs @@ -17,7 +17,7 @@ public partial class Samples_ChatCompletionsClient { [Test] [Ignore("Only validating compilation of examples")] - public void Example_Client1_GetModelInfo_MaximumSetModelInformation() + public void Example_Client1_GetModelInfo_ShortVersion() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); @@ -33,7 +33,7 @@ public void Example_Client1_GetModelInfo_MaximumSetModelInformation() [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_Client1_GetModelInfo_MaximumSetModelInformation_Async() + public async Task Example_Client1_GetModelInfo_ShortVersion_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); @@ -49,7 +49,7 @@ public async Task Example_Client1_GetModelInfo_MaximumSetModelInformation_Async( [Test] [Ignore("Only validating compilation of examples")] - public void Example_Client1_GetModelInfo_MaximumSetModelInformation_Convenience() + public void Example_Client1_GetModelInfo_ShortVersion_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); @@ -60,7 +60,7 @@ public void Example_Client1_GetModelInfo_MaximumSetModelInformation_Convenience( [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_Client1_GetModelInfo_MaximumSetModelInformation_Convenience_Async() + public async Task Example_Client1_GetModelInfo_ShortVersion_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); @@ -71,7 +71,7 @@ public async Task Example_Client1_GetModelInfo_MaximumSetModelInformation_Conven [Test] [Ignore("Only validating compilation of examples")] - public void Example_Client1_GetModelInfo_MinimumSetModelInformation() + public void Example_Client1_GetModelInfo_AllParameters() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); @@ -87,7 +87,7 @@ public void Example_Client1_GetModelInfo_MinimumSetModelInformation() [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_Client1_GetModelInfo_MinimumSetModelInformation_Async() + public async Task Example_Client1_GetModelInfo_AllParameters_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); @@ -103,7 +103,7 @@ public async Task Example_Client1_GetModelInfo_MinimumSetModelInformation_Async( [Test] [Ignore("Only validating compilation of examples")] - public void Example_Client1_GetModelInfo_MinimumSetModelInformation_Convenience() + public void Example_Client1_GetModelInfo_AllParameters_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); @@ -114,7 +114,7 @@ public void Example_Client1_GetModelInfo_MinimumSetModelInformation_Convenience( [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_Client1_GetModelInfo_MinimumSetModelInformation_Convenience_Async() + public async Task Example_Client1_GetModelInfo_AllParameters_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); diff --git a/sdk/ai/Azure.AI.Inference/tests/Generated/Samples/Samples_EmbeddingsClient.cs b/sdk/ai/Azure.AI.Inference/tests/Generated/Samples/Samples_EmbeddingsClient.cs index a6f43d432014..10bec67b060d 100644 --- a/sdk/ai/Azure.AI.Inference/tests/Generated/Samples/Samples_EmbeddingsClient.cs +++ b/sdk/ai/Azure.AI.Inference/tests/Generated/Samples/Samples_EmbeddingsClient.cs @@ -17,7 +17,7 @@ public partial class Samples_EmbeddingsClient { [Test] [Ignore("Only validating compilation of examples")] - public void Example_Client2_GetModelInfo_MaximumSetModelInformation() + public void Example_Client2_GetModelInfo_ShortVersion() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); @@ -33,7 +33,7 @@ public void Example_Client2_GetModelInfo_MaximumSetModelInformation() [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_Client2_GetModelInfo_MaximumSetModelInformation_Async() + public async Task Example_Client2_GetModelInfo_ShortVersion_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); @@ -49,7 +49,7 @@ public async Task Example_Client2_GetModelInfo_MaximumSetModelInformation_Async( [Test] [Ignore("Only validating compilation of examples")] - public void Example_Client2_GetModelInfo_MaximumSetModelInformation_Convenience() + public void Example_Client2_GetModelInfo_ShortVersion_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); @@ -60,7 +60,7 @@ public void Example_Client2_GetModelInfo_MaximumSetModelInformation_Convenience( [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_Client2_GetModelInfo_MaximumSetModelInformation_Convenience_Async() + public async Task Example_Client2_GetModelInfo_ShortVersion_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); @@ -71,7 +71,7 @@ public async Task Example_Client2_GetModelInfo_MaximumSetModelInformation_Conven [Test] [Ignore("Only validating compilation of examples")] - public void Example_Client2_GetModelInfo_MinimumSetModelInformation() + public void Example_Client2_GetModelInfo_AllParameters() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); @@ -87,7 +87,7 @@ public void Example_Client2_GetModelInfo_MinimumSetModelInformation() [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_Client2_GetModelInfo_MinimumSetModelInformation_Async() + public async Task Example_Client2_GetModelInfo_AllParameters_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); @@ -103,7 +103,7 @@ public async Task Example_Client2_GetModelInfo_MinimumSetModelInformation_Async( [Test] [Ignore("Only validating compilation of examples")] - public void Example_Client2_GetModelInfo_MinimumSetModelInformation_Convenience() + public void Example_Client2_GetModelInfo_AllParameters_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); @@ -114,7 +114,7 @@ public void Example_Client2_GetModelInfo_MinimumSetModelInformation_Convenience( [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_Client2_GetModelInfo_MinimumSetModelInformation_Convenience_Async() + public async Task Example_Client2_GetModelInfo_AllParameters_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); diff --git a/sdk/ai/Azure.AI.Inference/tests/Generated/Samples/Samples_ImageEmbeddingsClient.cs b/sdk/ai/Azure.AI.Inference/tests/Generated/Samples/Samples_ImageEmbeddingsClient.cs index 7c068f00b89c..dfea83312805 100644 --- a/sdk/ai/Azure.AI.Inference/tests/Generated/Samples/Samples_ImageEmbeddingsClient.cs +++ b/sdk/ai/Azure.AI.Inference/tests/Generated/Samples/Samples_ImageEmbeddingsClient.cs @@ -17,7 +17,7 @@ public partial class Samples_ImageEmbeddingsClient { [Test] [Ignore("Only validating compilation of examples")] - public void Example_Client3_GetModelInfo_MaximumSetModelInformation() + public void Example_Client3_GetModelInfo_ShortVersion() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); @@ -33,7 +33,7 @@ public void Example_Client3_GetModelInfo_MaximumSetModelInformation() [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_Client3_GetModelInfo_MaximumSetModelInformation_Async() + public async Task Example_Client3_GetModelInfo_ShortVersion_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); @@ -49,7 +49,7 @@ public async Task Example_Client3_GetModelInfo_MaximumSetModelInformation_Async( [Test] [Ignore("Only validating compilation of examples")] - public void Example_Client3_GetModelInfo_MaximumSetModelInformation_Convenience() + public void Example_Client3_GetModelInfo_ShortVersion_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); @@ -60,7 +60,7 @@ public void Example_Client3_GetModelInfo_MaximumSetModelInformation_Convenience( [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_Client3_GetModelInfo_MaximumSetModelInformation_Convenience_Async() + public async Task Example_Client3_GetModelInfo_ShortVersion_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); @@ -71,7 +71,7 @@ public async Task Example_Client3_GetModelInfo_MaximumSetModelInformation_Conven [Test] [Ignore("Only validating compilation of examples")] - public void Example_Client3_GetModelInfo_MinimumSetModelInformation() + public void Example_Client3_GetModelInfo_AllParameters() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); @@ -87,7 +87,7 @@ public void Example_Client3_GetModelInfo_MinimumSetModelInformation() [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_Client3_GetModelInfo_MinimumSetModelInformation_Async() + public async Task Example_Client3_GetModelInfo_AllParameters_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); @@ -103,7 +103,7 @@ public async Task Example_Client3_GetModelInfo_MinimumSetModelInformation_Async( [Test] [Ignore("Only validating compilation of examples")] - public void Example_Client3_GetModelInfo_MinimumSetModelInformation_Convenience() + public void Example_Client3_GetModelInfo_AllParameters_Convenience() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); @@ -114,7 +114,7 @@ public void Example_Client3_GetModelInfo_MinimumSetModelInformation_Convenience( [Test] [Ignore("Only validating compilation of examples")] - public async Task Example_Client3_GetModelInfo_MinimumSetModelInformation_Convenience_Async() + public async Task Example_Client3_GetModelInfo_AllParameters_Convenience_Async() { Uri endpoint = new Uri(""); AzureKeyCredential credential = new AzureKeyCredential(""); diff --git a/sdk/ai/Azure.AI.Inference/tsp-location.yaml b/sdk/ai/Azure.AI.Inference/tsp-location.yaml index 84d0451aecc0..fd2ab733ebb1 100644 --- a/sdk/ai/Azure.AI.Inference/tsp-location.yaml +++ b/sdk/ai/Azure.AI.Inference/tsp-location.yaml @@ -1,3 +1,4 @@ directory: specification/ai/ModelClient +commit: 85516dd4e0bdfa4a8e3ac34d4fa288c7a8943e3a repo: Azure/azure-rest-api-specs -commit: 9524584541371b1fc89720e9325332f52f850e70 +additionalDirectories: