From 531ede2073d60228351e5a456bd7e16735c77cf7 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Sat, 17 Aug 2024 06:58:19 -0700 Subject: [PATCH] feat: add cache_control_enabled field to ModelSettings --- aider/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/aider/models.py b/aider/models.py index 4e5bf74ca..dd652e708 100644 --- a/aider/models.py +++ b/aider/models.py @@ -73,6 +73,7 @@ class ModelSettings: examples_as_sys_msg: bool = False extra_headers: Optional[dict] = None max_tokens: Optional[int] = None + cache_control_enabled: bool = False # https://platform.openai.com/docs/models/gpt-4-and-gpt-4-turbo