From 685e63b9dae039b50865994cfbe67c1ba8856a5e Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 6 Feb 2025 11:37:44 -0800 Subject: [PATCH] fix: Adjust timeout handling in litellm.completion method --- aider/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/aider/models.py b/aider/models.py index de3a91b0a..90ca68a42 100644 --- a/aider/models.py +++ b/aider/models.py @@ -601,6 +601,7 @@ class Model(ModelSettings): # dump(kwargs) hash_object = hashlib.sha1(key) + # don't pass timeout here, add it to kwargs (if not already present) ai! res = litellm.completion(timeout=request_timeout, **kwargs) return hash_object, res