Hi, we are user of OpenAI_ex lib who is using Finch underneath for http. We recently found a bug in OpenAI_ex that when specifying receive_timeout for a stream request, if the timeout is reached, the request will hang. Please refer to this issue for details.
In the codebase of OpenAI_ex, where Finch.stream is used, we found once the stream request is made with a short receive_timeout, it will halt. This makes us wondering something might be not working as expected here.
Upon checking the code base in this lib, we see there is test coverage for Finch.request with receive_timeout, like here. However we couldn't find the case if receive_timeout is set to Finch.stream.
So what is the expected behaviour in this case? We are expecting it to be the same as a request that returns an error with reason :timeout or raising an exception if anything is wrong at least?
Thank you for your time!
Hi, we are user of OpenAI_ex lib who is using Finch underneath for http. We recently found a bug in OpenAI_ex that when specifying
receive_timeoutfor a stream request, if the timeout is reached, the request will hang. Please refer to this issue for details.In the codebase of OpenAI_ex, where Finch.stream is used, we found once the stream request is made with a short receive_timeout, it will halt. This makes us wondering something might be not working as expected here.
Upon checking the code base in this lib, we see there is test coverage for Finch.request with receive_timeout, like here. However we couldn't find the case if receive_timeout is set to Finch.stream.
So what is the expected behaviour in this case? We are expecting it to be the same as a request that returns an error with reason
:timeoutor raising an exception if anything is wrong at least?Thank you for your time!