mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 00:35:00 +00:00
refactor: Update method calls to use model's instance methods
This commit is contained in:
parent
72b82a8d19
commit
dbf80d564b
2 changed files with 2 additions and 3 deletions
|
@ -1620,8 +1620,7 @@ See https://aider.chat/docs/llms/ollama.html#setting-the-context-window-size
|
|||
|
||||
completion = None
|
||||
try:
|
||||
hash_object, completion = send_completion(
|
||||
model.name,
|
||||
hash_object, completion = model.send_completion(
|
||||
messages,
|
||||
functions,
|
||||
self.stream,
|
||||
|
|
|
@ -204,7 +204,7 @@ class GitRepo:
|
|||
max_tokens = model.info.get("max_input_tokens") or 0
|
||||
if max_tokens and num_tokens > max_tokens:
|
||||
continue
|
||||
commit_message = simple_send_with_retries(model, messages)
|
||||
commit_message = model.simple_send_with_retries(messages)
|
||||
if commit_message:
|
||||
break
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue