mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 22:34:59 +00:00
send the reminder if unknown context window size
This commit is contained in:
parent
ca0faf7cc7
commit
04b224962e
1 changed files with 2 additions and 1 deletions
|
@ -627,8 +627,9 @@ class Coder:
|
|||
|
||||
final = messages[-1]
|
||||
|
||||
max_input_tokens = self.main_model.info.get("max_input_tokens")
|
||||
# Add the reminder prompt if we still have room to include it.
|
||||
if total_tokens < self.main_model.info.get("max_input_tokens", 0):
|
||||
if max_input_tokens is None or total_tokens < max_input_tokens:
|
||||
if self.main_model.reminder_as_sys_msg:
|
||||
messages += reminder_message
|
||||
elif final["role"] == "user":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue