TheR1D / shell_gpt

A command-line productivity tool powered by AI large language models like GPT-4, will help you accomplish your tasks faster and more efficiently.
MIT License
9.83k stars 771 forks source link

Implement Function Calling #415

Closed TheR1D closed 10 months ago

TheR1D commented 11 months ago

ShellGPT could benefit from OpenAI's function-calling feature in several ways. For example creating "shell_command_call" function might automate command executions from LLM output, etc... The main challenge, however, would likely be simplifying the process for users to create their custom functions. These functions should be seamlessly integrated into ShellGPT, enabling it to generate a JSON schema dynamically when calling the API.

Discussion: https://github.com/TheR1D/shell_gpt/discussions/416