We been using Official OpenAI .NET SDK: GitHub - openai/openai-dotnet: The official .NET library for the OpenAI API for calling SambaNova. But for some reason it stopped working throwing this error:
at System.Text.Json.ThrowHelper.ThrowFormatException()
at System.Text.Json.JsonElement.GetInt64()
at OpenAI.Chat.ChatCompletion.DeserializeChatCompletion(JsonElement element, ModelReaderWriterOptions options)
at OpenAI.Chat.ChatCompletion.FromResponse(PipelineResponse response)
at OpenAI.Chat.ChatClient.CompleteChatAsync(IEnumerable`1 messages, ChatCompletionOptions options, CancellationToken cancellationToken)
at OpenAI.Chat.ChatClient.CompleteChatAsync(ChatMessage messages)
Seems like there is something changed in response body as it worked well until few days ago