Timeout issue when using API gpt4-o

Hello,

I have a .NET solution and experience timeout issues I have not dealt with before:
System.AggregateException: 'Retry failed after 4 tries. (The operation was cancelled because it exceeded the configured timeout of 0:01:40. )

From inspiration on GitHub (GitHub - openai/openai-dotnet: The official .NET library for the OpenAI API), I use the openai-dotnet library like this:
builder.Services.AddSingleton(_ =>
{
var openApiKey = builder.Configuration[“OPENAI_API_KEY”];

if (string.IsNullOrEmpty(openApiKey))
    throw new InvalidOperationException("OPENAI_API_KEY is not configured");

return new ChatClient(model: "gpt-4o", apiKey: openApiKey);

});

public class SomeService(ChatClient client)
{
var messages = new List
{
new SystemChatMessage(aPurpose),
new UserChatMessage(aMessage)
};

var options = new ChatCompletionOptions
{
Temperature = 0.8f,
ResponseFormat = ChatResponseFormat.CreateJsonSchemaFormat(
jsonSchemaFormatName: “schema”,
jsonSchema: BinaryData.FromBytes(Encoding.UTF8.GetBytes(GetJsonResponseSchema()).AsMemory()),
jsonSchemaIsStrict: true)
};

var completion = await client.CompleteChatAsync(messages, options, cancellationToken);
[…]
}

The JSON schema is really not that big.

What can cause this? I can see my Usage on OpenAI is skyrocketing and seems reasonable since my code keeps prompting it. Unfortunately, I don’t get the response.