From 0b0493fa21c8ecf17cc62a16abaf3330af594129 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Fri, 28 Mar 2025 20:09:11 -1000 Subject: [PATCH] style: Remove unnecessary parentheses in conditions --- aider/models.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/aider/models.py b/aider/models.py index 46702b551..e892b4f2f 100644 --- a/aider/models.py +++ b/aider/models.py @@ -694,15 +694,11 @@ class Model(ModelSettings): if self.extra_params: # Check for OpenRouter reasoning format - if ( - "reasoning" in self.extra_params - and "max_tokens" in self.extra_params["reasoning"] - ): + if "reasoning" in self.extra_params and "max_tokens" in self.extra_params["reasoning"]: budget = self.extra_params["reasoning"]["max_tokens"] # Check for standard thinking format elif ( - "thinking" in self.extra_params - and "budget_tokens" in self.extra_params["thinking"] + "thinking" in self.extra_params and "budget_tokens" in self.extra_params["thinking"] ): budget = self.extra_params["thinking"]["budget_tokens"]