mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-02 18:54:59 +00:00
style: Remove unnecessary parentheses in conditions
This commit is contained in:
parent
14d1742869
commit
0b0493fa21
1 changed files with 2 additions and 6 deletions
|
@ -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"]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue