Merge branch 'main' into sitter-map

This commit is contained in:
Paul Gauthier 2023-09-01 12:00:48 -07:00
commit fa6ae80653
13 changed files with 163 additions and 42 deletions

View file

@ -183,7 +183,7 @@ class Coder:
for fname in self.get_inchat_relative_files():
self.io.tool_output(f"Added {fname} to the chat.")
self.summarizer = ChatSummary()
self.summarizer = ChatSummary(models.Model.weak_model())
self.summarizer_thread = None
self.summarized_done_messages = None
@ -629,7 +629,7 @@ class Coder:
if len(chunk.choices) == 0:
continue
if chunk.choices[0].finish_reason == "length":
if hasattr(chunk.choices[0], "finish_reason") and chunk.choices[0].finish_reason == "length":
raise ExhaustedContextWindow()
try: