mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-06 20: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:
|
if self.extra_params:
|
||||||
# Check for OpenRouter reasoning format
|
# Check for OpenRouter reasoning format
|
||||||
if (
|
if "reasoning" in self.extra_params and "max_tokens" in self.extra_params["reasoning"]:
|
||||||
"reasoning" in self.extra_params
|
|
||||||
and "max_tokens" in self.extra_params["reasoning"]
|
|
||||||
):
|
|
||||||
budget = self.extra_params["reasoning"]["max_tokens"]
|
budget = self.extra_params["reasoning"]["max_tokens"]
|
||||||
# Check for standard thinking format
|
# Check for standard thinking format
|
||||||
elif (
|
elif (
|
||||||
"thinking" in self.extra_params
|
"thinking" in self.extra_params and "budget_tokens" in self.extra_params["thinking"]
|
||||||
and "budget_tokens" in self.extra_params["thinking"]
|
|
||||||
):
|
):
|
||||||
budget = self.extra_params["thinking"]["budget_tokens"]
|
budget = self.extra_params["thinking"]["budget_tokens"]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue