mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
Merge branch 'main' into path-completer
This commit is contained in:
commit
79e0b80f34
1 changed files with 4 additions and 2 deletions
|
@ -1071,13 +1071,15 @@ class Coder:
|
|||
self.warming_pings_left -= 1
|
||||
self.next_cache_warm = time.time() + delay
|
||||
|
||||
kwargs = self.main_model.extra_params or dict()
|
||||
kwargs["max_tokens"] = 1
|
||||
|
||||
try:
|
||||
completion = litellm.completion(
|
||||
model=self.main_model.name,
|
||||
messages=self.cache_warming_chunks.cacheable_messages(),
|
||||
stream=False,
|
||||
max_tokens=1,
|
||||
extra_params=self.main_model.extra_params,
|
||||
**kwargs,
|
||||
)
|
||||
except Exception as err:
|
||||
self.io.tool_warning(f"Cache warming error: {str(err)}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue