From 4fe8cca0e95f4caf14cdd31d17913ca8ca12dfdd Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Tue, 30 Jul 2024 11:57:36 -0300 Subject: [PATCH] Fix `ChatSummary` to take a list of models and work down the list until one succeeds. --- aider/history.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/history.py b/aider/history.py index e2fd422bb..c3568a305 100644 --- a/aider/history.py +++ b/aider/history.py @@ -118,7 +118,7 @@ class ChatSummary: except Exception as e: print(f"Summarization failed for model {model.name}: {str(e)}") - raise ValueError(f"summarizer unexpectedly failed for all models") + raise ValueError("summarizer unexpectedly failed for all models") def main():