1.1.0
版本发布时间: 2024-01-09 10:10:38
TheR1D/shell_gpt最新发布版本:1.4.4(2024-08-11 07:32:04)
https://github.com/TheR1D/shell_gpt/assets/16740832/721ddb19-97e7-428f-a0ee-107d027ddd59
OpenAI Library
ShellGPT has now integrated the OpenAI Python library for handling API requests. This integration simplifies the development and maintenance of the ShellGPT code base. Additionally, it enhances user experience by providing more user-friendly error messages, complete with descriptions and potential solutions.
Function Calling
Function calls is a powerful feature OpenAI provides. It allows LLM to execute functions in your system, which can be used to accomplish a variety of tasks. ShellGPT has a convenient way to define functions and use them. To install default functions run:
sgpt --install-functions
This will add a function for LLM to execute shell commands and to execute Apple Scripts (on macOS). More details in demo video and README.md.
Options
- Shortcut option
-c
for—code
. - Shortcut option
-lc
for--list-chats
- Shortcut option
-lr
for--list-roles
- New
—functions
option, enables/disable function calling. - New
—install-functions
option, installs default functions.
Config
- New config variable
OPENAI_FUNCTIONS_PATH
- New config variable
OPENAI_USE_FUNCTIONS
- New config variable
SHOW_FUNCTIONS_OUTPUT
Minor Changes
- Code optimisation
- Cache optimisations for function calls
1、 shell_gpt-1.1.0-py3-none-any.whl 27.04KB
2、 shell_gpt-1.1.0.tar.gz 33.6KB