Skip to content

Commit b37ad46

Browse files
committed
Update HTTP client resilience handler configuration
Modified the `AddStandardResilienceHandler` method in `Program.cs` to accept an `options` parameter. This allows for setting a `TotalRequestTimeout` of 2 minutes, enhancing the resilience handling of HTTP requests.
1 parent 90b69f0 commit b37ad46

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

SqlDatabaseVectorSearch/Program.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@
4949

5050
builder.Services.ConfigureHttpClientDefaults(builder =>
5151
{
52-
builder.AddStandardResilienceHandler();
52+
builder.AddStandardResilienceHandler(options =>
53+
{
54+
options.TotalRequestTimeout.Timeout = TimeSpan.FromMinutes(2);
55+
});
5356
});
5457

5558
// Semantic Kernel is used to generate embeddings and to reformulate questions taking into account all the previous interactions,

0 commit comments

Comments
 (0)