aider icon indicating copy to clipboard operation
aider copied to clipboard

Is it possible to set custom timeout?

Open b4git opened this issue 2 years ago • 3 comments

I got the following message while working with a slow local model:

Applied edit to index.html
Applied edit to style.css
Request timed out: HTTPConnectionPool(host='localhost', port=1234): Read timed out. (read timeout=600)
Retry in 0.2 seconds.
Commit fc5372c aider: diff --git a/index.js b/index.js

Is it possible to set custom values for the timeout and retry periods?

b4git avatar Oct 09 '23 12:10 b4git

Thanks for trying aider!

Aider uses the standard openai python library, which apparently does not accept a timeout parameter.

https://github.com/openai/openai-python/issues/322

paul-gauthier avatar Oct 12 '23 14:10 paul-gauthier

Unfortunately, it requires a lot of code changes, as it is only available on the beta version: https://github.com/openai/openai-python/discussions/631


Looks like timeout is now a possible parameter:

https://github.com/openai/openai-python/issues/322#issuecomment-1767841683

NightOwlCoder avatar Oct 20 '23 18:10 NightOwlCoder

I will keep an eye on this new version of the api, thanks.

paul-gauthier avatar Oct 20 '23 18:10 paul-gauthier