fix: improve o1 model detection with startswith check

This commit is contained in:
Paul Gauthier 2024-10-29 14:00:56 -07:00 committed by Paul Gauthier (aider)
parent a4be01b474
commit b40ff2a601

View file

@ -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