mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-04 11:45:00 +00:00
refactor: update simple_send_with_retries to use model object and handle temperature
This commit is contained in:
parent
2325f542b8
commit
ccf460c1f7
3 changed files with 6 additions and 9 deletions
|
@ -108,9 +108,7 @@ class ChatSummary:
|
|||
|
||||
for model in self.models:
|
||||
try:
|
||||
summary = simple_send_with_retries(
|
||||
model.name, summarize_messages, extra_params=model.extra_params
|
||||
)
|
||||
summary = simple_send_with_retries(model, summarize_messages)
|
||||
if summary is not None:
|
||||
summary = prompts.summary_prefix + summary
|
||||
return [dict(role="user", content=summary)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue