Skip to content

HttpClient timeout exception for Whisper API calls #266

Discussion options

You must be logged in to vote

Can you configure the HttpClient timeout by passing it in the constructor of the OpenAIClient:

using var customHttpClient = new HttpClient();
// set custom http client properties here
customHttpClient.Timeout = TimeSpan.FromMinutes(30);
var api = new OpenAIClient(client: customHttpClient);

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@syntaxerror1024
Comment options

Answer selected by syntaxerror1024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #265 on March 13, 2024 15:52.