Closed PooSham closed 11 months ago
I'm not sure if the problem lies in the SDK or Azure OpenAI Studio.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @jpalvarezl @trrwilson.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @jpalvarezl @trrwilson.
Library name and version
Azure.AI.OpenAI 1.0.0-beta.10
Describe the bug
Setting
ResponseFormat = ChatCompletionsResponseFormat.JsonObject
throws an exception when callingGetChatCompletions
against a model that should support JSON mode.I've tried it against deployments of the gpt-35-turbo model with version 1106, as well as the gpt-4 model with version 1106-preview. None of which worked.
Expected behavior
To not get this error for
gpt-35-turbo 1106
andgpt-4 1106-preview
, since they should be supported according to the CHANGELOGActual behavior
An Azure.RequestFailedException is thrown, with the following message:
Reproduction Steps
Set up a deployment in Azure OpenAI Studio with model
gpt-35-turbo
orgpt-4
with version 1106 or 1106-preview respectively.Run the following code:
Environment
OS: Windows 11 .NET runtime: .NET Framework 4.8 Language: VB.NET (I wrote the reproduction steps in C#, but the code that ran this for me was VB.NET) IDE: Visual Studio 16.11.29