refactor: rename argc install to argc link-to-aichat (#171)

This commit is contained in:
sigoden
2025-02-24 07:53:13 +08:00
committed by GitHub
parent 4780ecb39d
commit 5cd7e71a13
3 changed files with 16 additions and 7 deletions
+2 -2
View File
@@ -549,8 +549,8 @@ link-code-interpreter() {
_link_tool $1 code_interpreter
}
# @cmd Install this repo to aichat functions_dir
install() {
# @cmd Link this repo to aichat functions_dir
link-to-aichat() {
functions_dir="$(aichat --info | grep -w functions_dir | awk '{$1=""; print substr($0,2)}')"
if [[ -z "$functions_dir" ]]; then
_die "error: your aichat version don't support function calling"