Merge remote-tracking branch 'origin/main'

This commit is contained in:
Paul Gauthier 2023-09-08 08:26:23 -07:00
commit bfbd7b8416
2 changed files with 7 additions and 1 deletions

View file

@ -85,6 +85,8 @@ class ChatSummary:
]
summary = simple_send_with_retries(self.model.name, messages)
if summary is None:
raise ValueError(f"summarizer unexpectedly failed for {self.model.name}")
summary = prompts.summary_prefix + summary
return [dict(role="user", content=summary)]