mirror of
https://github.com/marcominerva/SqlDatabaseVectorSearch.git
synced 2026-06-20 12:23:10 +00:00
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.
This commit is contained in:
@@ -49,7 +49,10 @@ builder.Services.AddHybridCache(options =>
|
||||
|
||||
builder.Services.ConfigureHttpClientDefaults(builder =>
|
||||
{
|
||||
builder.AddStandardResilienceHandler();
|
||||
builder.AddStandardResilienceHandler(options =>
|
||||
{
|
||||
options.TotalRequestTimeout.Timeout = TimeSpan.FromMinutes(2);
|
||||
});
|
||||
});
|
||||
|
||||
// Semantic Kernel is used to generate embeddings and to reformulate questions taking into account all the previous interactions,
|
||||
|
||||
Reference in New Issue
Block a user