Skip to content

Commit ada01cb

Browse files
committed
Rename exec_command tool to exec
1 parent 22bd928 commit ada01cb

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

mini_copilot/main.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def completer(text, state):
2020

2121
from mini_copilot.github_api import chat, get_copilot_token
2222
from mini_copilot.web_search import web_search
23-
from mini_copilot.exec_tool import exec_command
23+
from mini_copilot.exec_tool import exec_command as exec
2424
from mini_copilot.commands.auth import handle_login_command
2525
from mini_copilot.commands.model import handle_model_command
2626
from mini_copilot.commands.search_provider import handle_search_provider_command
@@ -64,7 +64,7 @@ def completer(text, state):
6464
EXEC_COMMAND_TOOL = {
6565
"type": "function",
6666
"function": {
67-
"name": "exec_command",
67+
"name": "exec",
6868
"description": "Execute a shell command on the local system and return the output.",
6969
"parameters": {
7070
"type": "object",
@@ -187,9 +187,9 @@ def main():
187187
}
188188
)
189189

190-
if function_name == "exec_command":
190+
if function_name == "exec":
191191
command = function_args.get("command")
192-
output = exec_command(command)
192+
output = exec(command)
193193

194194
messages.append(
195195
{

0 commit comments

Comments
 (0)