JZO001/Forge.OpenAI

Setting the timeout on requests to ChatCompletionService

Opened this issue · 2 comments

Is there an easy way to change the timeout.

I've been hitting a timeout issue in my response from the ChatCompletionService. The max appears to be 100seconds.

JZO001 commented

Where is the timeout comes? From the HttpClient or from the OpenAI service?
If your would like to configure HttpClient Timeout value, the quickest way right now, if you extend the ApiHttpClientFactory and replace the service registration in the DI container.