File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ def completer(text, state):
2020
2121from mini_copilot .github_api import chat , get_copilot_token
2222from 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
2424from mini_copilot .commands .auth import handle_login_command
2525from mini_copilot .commands .model import handle_model_command
2626from mini_copilot .commands .search_provider import handle_search_provider_command
@@ -64,7 +64,7 @@ def completer(text, state):
6464EXEC_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 {
You can’t perform that action at this time.
0 commit comments