API calls stopped working

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

1 Like

@hasterson123

First welcome to the community. Secondly can you let us know which model you are calling that is failing as well as any sample code you can provide us to duplicate the issue.

-Coby