From e1c3a2f8cf290894fa01b536d6d39ccb6a0ef397 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Fri, 28 Mar 2025 20:09:38 -1000 Subject: [PATCH] fix: Use self instead of model argument in get_reasoning_effort --- aider/models.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/aider/models.py b/aider/models.py index e892b4f2f..1230195d6 100644 --- a/aider/models.py +++ b/aider/models.py @@ -723,14 +723,14 @@ class Model(ModelSettings): return f"{value:.1f}k" return None - def get_reasoning_effort(self, model): + def get_reasoning_effort(self): """Get reasoning effort value if available""" if ( - model.extra_params - and "extra_body" in model.extra_params - and "reasoning_effort" in model.extra_params["extra_body"] + self.extra_params + and "extra_body" in self.extra_params + and "reasoning_effort" in self.extra_params["extra_body"] ): - return model.extra_params["extra_body"]["reasoning_effort"] + return self.extra_params["extra_body"]["reasoning_effort"] return None def is_deepseek_r1(self):