Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion aider/coders/base_coder.py
Original file line number Diff line number Diff line change
Expand Up @@ -1376,9 +1376,12 @@ def warm_cache_worker():
stream=False,
**kwargs,
)
except KeyboardInterrupt:
self.io.tool_output("\nRequest cancelled by user.")
return
except Exception as err:
self.io.tool_warning(f"Cache warming error: {str(err)}")
continue
return

cache_hit_tokens = getattr(
completion.usage, "prompt_cache_hit_tokens", 0
Expand Down