style: Apply linter formatting to remove extra whitespaces

This commit is contained in:
Paul Gauthier (aider) 2025-03-07 17:51:11 -08:00
parent ca6abdfc61
commit bdaa70ada5
3 changed files with 4 additions and 4 deletions

View file

@ -1831,7 +1831,7 @@ class Coder:
"""Remove reasoning content from the model's response."""
from aider.reasoning_tags import remove_reasoning_content
self.partial_response_content = remove_reasoning_content(
self.partial_response_content,
self.reasoning_tag_name,

View file

@ -633,7 +633,6 @@ class Model(ModelSettings):
res = litellm.completion(**kwargs)
return hash_object, res
def simple_send_with_retries(self, messages):
from aider.exceptions import LiteLLMExceptions
@ -655,6 +654,7 @@ class Model(ModelSettings):
return None
res = response.choices[0].message.content
from aider.reasoning_tags import remove_reasoning_content
return remove_reasoning_content(res, self.remove_reasoning)
except litellm_ex.exceptions_tuple() as err:

View file

@ -14,12 +14,12 @@ REASONING_END = "> ... done thinking.\n\n------"
def remove_reasoning_content(res, reasoning_tag=None, model_remove_reasoning=None):
"""
Remove reasoning content from text based on tags.
Args:
res (str): The text to process
reasoning_tag (str): The tag name to remove
model_remove_reasoning (str): Fallback tag name from model settings
Returns:
str: Text with reasoning content removed
"""