mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 18:25: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.warming_pings_left -= 1
|
||||||
self.next_cache_warm = time.time() + delay
|
self.next_cache_warm = time.time() + delay
|
||||||
|
|
||||||
|
kwargs = self.main_model.extra_params or dict()
|
||||||
|
kwargs["max_tokens"] = 1
|
||||||
|
|
||||||
try:
|
try:
|
||||||
completion = litellm.completion(
|
completion = litellm.completion(
|
||||||
model=self.main_model.name,
|
model=self.main_model.name,
|
||||||
messages=self.cache_warming_chunks.cacheable_messages(),
|
messages=self.cache_warming_chunks.cacheable_messages(),
|
||||||
stream=False,
|
stream=False,
|
||||||
max_tokens=1,
|
**kwargs,
|
||||||
extra_params=self.main_model.extra_params,
|
|
||||||
)
|
)
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
self.io.tool_warning(f"Cache warming error: {str(err)}")
|
self.io.tool_warning(f"Cache warming error: {str(err)}")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue