mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-02 18:54:59 +00:00
feat: Add /think
and /reason
command aliases for think-tokens and reasoning-effort
This commit is contained in:
parent
79f714ab16
commit
7afc8c760c
1 changed files with 8 additions and 0 deletions
|
@ -1430,6 +1430,10 @@ class Commands:
|
||||||
announcements = "\n".join(self.coder.get_announcements())
|
announcements = "\n".join(self.coder.get_announcements())
|
||||||
self.io.tool_output(announcements)
|
self.io.tool_output(announcements)
|
||||||
|
|
||||||
|
def cmd_think(self, args):
|
||||||
|
"Alias for think-tokens command"
|
||||||
|
return self.cmd_think_tokens(args)
|
||||||
|
|
||||||
def cmd_reasoning_effort(self, args):
|
def cmd_reasoning_effort(self, args):
|
||||||
"Set the reasoning effort level (values: number or low/medium/high depending on model)"
|
"Set the reasoning effort level (values: number or low/medium/high depending on model)"
|
||||||
if not args.strip():
|
if not args.strip():
|
||||||
|
@ -1448,6 +1452,10 @@ class Commands:
|
||||||
announcements = "\n".join(self.coder.get_announcements())
|
announcements = "\n".join(self.coder.get_announcements())
|
||||||
self.io.tool_output(announcements)
|
self.io.tool_output(announcements)
|
||||||
|
|
||||||
|
def cmd_reason(self, args):
|
||||||
|
"Alias for reasoning-effort command"
|
||||||
|
return self.cmd_reasoning_effort(args)
|
||||||
|
|
||||||
def cmd_copy_context(self, args=None):
|
def cmd_copy_context(self, args=None):
|
||||||
"""Copy the current chat context as markdown, suitable to paste into a web UI"""
|
"""Copy the current chat context as markdown, suitable to paste into a web UI"""
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue