mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-02 02:34:59 +00:00
style: Apply linter formatting to remove extra whitespaces
This commit is contained in:
parent
ca6abdfc61
commit
bdaa70ada5
3 changed files with 4 additions and 4 deletions
|
@ -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,
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue