mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 10:14:59 +00:00
fix: Use self instead of model in get_raw_thinking_tokens
This commit is contained in:
parent
96aa77288b
commit
14d1742869
1 changed files with 6 additions and 6 deletions
|
@ -695,16 +695,16 @@ 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 model.extra_params
|
"reasoning" in self.extra_params
|
||||||
and "max_tokens" in model.extra_params["reasoning"]
|
and "max_tokens" in self.extra_params["reasoning"]
|
||||||
):
|
):
|
||||||
budget = model.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 model.extra_params
|
"thinking" in self.extra_params
|
||||||
and "budget_tokens" in model.extra_params["thinking"]
|
and "budget_tokens" in self.extra_params["thinking"]
|
||||||
):
|
):
|
||||||
budget = model.extra_params["thinking"]["budget_tokens"]
|
budget = self.extra_params["thinking"]["budget_tokens"]
|
||||||
|
|
||||||
return budget
|
return budget
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue