Fix ChatSummary to take a list of models and work down the list until one succeeds.

This commit is contained in:
Paul Gauthier (aider) 2024-07-30 11:57:36 -03:00
parent 2e4de1a0d3
commit 4fe8cca0e9

View file

@ -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():