From edcf66c69400789dba602182d04d5ffc2edbf77b Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sun, 14 Jul 2024 17:41:21 +0100 Subject: [PATCH] Added missing Model.can_prefill --- aider/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aider/models.py b/aider/models.py index c65da38ae..7194bbcc2 100644 --- a/aider/models.py +++ b/aider/models.py @@ -58,6 +58,7 @@ ANTHROPIC_MODELS = [ln.strip() for ln in ANTHROPIC_MODELS.splitlines() if ln.str @dataclass class ModelSettings: + # Model class needs to have each of these as well name: str edit_format: str weak_model_name: Optional[str] = None @@ -360,6 +361,7 @@ class Model: lazy = False reminder_as_sys_msg = False examples_as_sys_msg = False + can_prefill = False max_chat_history_tokens = 1024 weak_model = None