From b40ff2a6017024eca5f160040629dfe3015225aa Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Tue, 29 Oct 2024 14:00:56 -0700 Subject: [PATCH] fix: improve o1 model detection with startswith check --- aider/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/models.py b/aider/models.py index a2800c7d1..602d1d05d 100644 --- a/aider/models.py +++ b/aider/models.py @@ -778,7 +778,7 @@ class Model(ModelSettings): self.examples_as_sys_msg = True self.reminder = "user" - if "o1-" in model: + if model.startswith("o1-") or "/o1-" in model: self.use_system_prompt = False self.use_temperature = False self.streaming = False