From e52c1044cd702d5600447a9d615a78afaf3f986e Mon Sep 17 00:00:00 2001 From: Tolga Kayhan Date: Sat, 9 Dec 2023 23:42:03 +0000 Subject: [PATCH] updated azure api version to support latest features. closes #318 --- OpenAI.Playground/TestHelpers/ImageTestHelper.cs | 4 ++-- OpenAI.SDK/OpenAiOptions.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OpenAI.Playground/TestHelpers/ImageTestHelper.cs b/OpenAI.Playground/TestHelpers/ImageTestHelper.cs index 1f6ffda1..b90fa7ee 100644 --- a/OpenAI.Playground/TestHelpers/ImageTestHelper.cs +++ b/OpenAI.Playground/TestHelpers/ImageTestHelper.cs @@ -16,8 +16,8 @@ public static async Task RunSimpleCreateImageTest(IOpenAIService sdk) var imageResult = await sdk.Image.CreateImage(new ImageCreateRequest { Prompt = "Laser cat eyes", - N = 2, - Size = StaticValues.ImageStatics.Size.Size256, + N = 1, + Size = StaticValues.ImageStatics.Size.Size1024, ResponseFormat = StaticValues.ImageStatics.ResponseFormat.Url, User = "TestUser" }); diff --git a/OpenAI.SDK/OpenAiOptions.cs b/OpenAI.SDK/OpenAiOptions.cs index 2bcdcaed..e268ff59 100644 --- a/OpenAI.SDK/OpenAiOptions.cs +++ b/OpenAI.SDK/OpenAiOptions.cs @@ -20,7 +20,7 @@ public class OpenAiOptions { private const string OpenAiDefaultApiVersion = "v1"; private const string OpenAiDefaultBaseDomain = "https://api.openai.com/"; - private const string AzureOpenAiDefaultApiVersion = "2023-09-01-preview"; + private const string AzureOpenAiDefaultApiVersion = "2023-12-01-preview"; ///