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