# API calls stopped working

**URL:** <https://community.sambanova.ai/t/api-calls-stopped-working/998>\
**Category:** Discussion\
**Created:** [March 20, 2025, 4:17pm UTC](https://community.sambanova.ai/t/api-calls-stopped-working/998 "2025-03-20T16:17:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hasterson123](https://sea1.discourse-cdn.com/sambanova/user_avatar/community.sambanova.ai/hasterson123/32/2170_2.png) [@hasterson123](https://community.sambanova.ai/u/hasterson123)\
**Post date:** [March 20, 2025, 4:17pm UTC](https://community.sambanova.ai/t/api-calls-stopped-working/998/1 "2025-03-20T16:17:46Z")

</div>

We been using Official OpenAI .NET SDK: [GitHub - openai/openai-dotnet: The official .NET library for the OpenAI API](https://github.com/openai/openai-dotnet) 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

---

<div class="post-metadata">

**Author:** ![Coby](https://sea1.discourse-cdn.com/sambanova/user_avatar/community.sambanova.ai/coby/32/17_2.png) [@Coby](https://community.sambanova.ai/u/Coby)\
**Post date:** [March 24, 2025, 6:13pm UTC](https://community.sambanova.ai/t/api-calls-stopped-working/998/2 "2025-03-24T18:13:46Z")

</div>

@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
