Exception: The JSON value could not be converted to OpenAI.ResponseFormatObject

Earlier I was using OpenAI-DotNet v8.1.1 but when I upgraded to the latest one it started giving me this error.

Getting this error:
Exception":"System.Text.Json.JsonException: The JSON value could not be converted to OpenAI.ResponseFormatObject. Path: $.response_format | LineNumber: 30 | BytePositionInLine: 27.\r\n at System.Text.Json.ThrowHelper.ThrowJsonException_DeserializeUnableToConvertValue(Type propertyType)\r\n at System.Text.Json.Serialization.Converters.ObjectDefaultConverter1.OnTryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value)\r\n at System.Text.Json.Serialization.JsonConverter1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value, Boolean& isPopulatedValue)\r\n at System.Text.Json.Serialization.Metadata.JsonPropertyInfo1.ReadJsonAndSetMember(Object obj, ReadStack& state, Utf8JsonReader& reader)\r\n at System.Text.Json.Serialization.Converters.ObjectDefaultConverter1.OnTryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value)\r\n at System.Text.Json.Serialization.JsonConverter1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value, Boolean& isPopulatedValue)\r\n at System.Text.Json.Serialization.JsonConverter1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)\r\n at System.Text.Json.JsonSerializer.ReadFromSpan[TValue](ReadOnlySpan1 utf8Json, JsonTypeInfo1 jsonTypeInfo, Nullable1 actualByteCount)\r\n at System.Text.Json.JsonSerializer.ReadFromSpan[TValue](ReadOnlySpan1 json, JsonTypeInfo`1 jsonTypeInfo)\r\n at System.Text.Json.JsonSerializer.Deserialize[TValue](String json, JsonSerializerOptions options)\r\n at OpenAI.Extensions.ResponseExtensions.Deserialize[T](HttpResponseMessage response, String json, OpenAIClient client)\r\n at OpenAI.Assistants.AssistantsEndpoint.RetrieveAssistantAsync(String assistantId, CancellationToken cancellationToken)\r\n

In older version
:
[JsonInclude]
[JsonPropertyName(“response_format”)]
[JsonConverter(typeof(ResponseFormatConverter))]
public ChatResponseFormat ResponseFormat { get; private set; }

In newer Version:
[JsonInclude]
[JsonPropertyName("response_format")]
public ResponseFormatObject ResponseFormatObject { get; private set; }

[JsonIgnore]
public ChatResponseFormat ResponseFormat => ResponseFormatObject ?? ((ResponseFormatObject)ChatResponseFormat.Auto);

responseformat got changed and when the openAI RetrieveAssistantMethod does the desrialization it is throwing this exception:
 public async Task<AssistantResponse> RetrieveAssistantAsync(string assistantId, CancellationToken cancellationToken = default(CancellationToken))

{
using HttpResponseMessage response = await client.Client.GetAsync(GetUrl(“/” + assistantId), cancellationToken).ConfigureAwait(continueOnCapturedContext: false);
return response.Deserialize(await response.ReadAsStringAsync(base.EnableDebug, cancellationToken, “RetrieveAssistantAsync”).ConfigureAwait(continueOnCapturedContext: false), client);
}


public class OpenAIClientWrapper : IOpenAIClientWrapper
{
private readonly OpenAIClient openAIClient;
private readonly string apiKey;

public OpenAIClientWrapper(IOptions<AppSettings> appSettings)
{
    this.apiKey = appSettings.Value.OpenAIKey;
    this.openAIClient = new OpenAIClient(apiKey);
}

public async Task<AssistantResponse> RetrieveAssistantAsync(string assistantId) => await openAIClient.AssistantsEndpoint.RetrieveAssistantAsync(assistantId);

public async Task GetChatbotResponseAsync(ChatbotRequest request)
{
try
{
await retryPolicy.ExecuteAsync(async () =>
{
var assistant = await openAIClientWrapper.RetrieveAssistantAsync(request.AssistantId);


To Reproduce:
Update the OpenAi-dotnet package and then call the retrievAssitant object by id it will throw error:
in this line:
return response.Deserialize(await response.ReadAsStringAsync(base.EnableDebug, cancellationToken, “RetrieveAssistantAsync”).ConfigureAwait(continueOnCapturedContext: false), client);