fix: extraction of functions_dir for symlink (#103)

This commit is contained in:
Eugen Eisler authored and GitHub committed 2024-09-18 05:53:26 +08:00
1 parent e87d3481d9
commit 8aeb2d4301
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -471,7 +471,7 @@ link-code-interpreter() {
# @cmd Install this repo to aichat functions_dir # @cmd Install this repo to aichat functions_dir
install() { install() {
functions_dir="$(aichat --info | grep -w functions_dir | awk '{print $2}')" functions_dir="$(aichat --info | grep -w functions_dir | awk '{$1=""; print substr($0,2)}')"
if [[ -z "$functions_dir" ]]; then if [[ -z "$functions_dir" ]]; then
_die "error: your aichat version don't support function calling" _die "error: your aichat version don't support function calling"
fi fi
+1 -1
View File
@@ -81,7 +81,7 @@ argc build
Symlink this repo directory to AIChat's **functions_dir**: Symlink this repo directory to AIChat's **functions_dir**:
```sh ```sh
ln -s "$(pwd)" "$(aichat --info | grep -w functions_dir | awk '{print $2}')" ln -s "$(pwd)" "$(aichat --info | grep -w functions_dir | awk '{$1=""; print substr($0,2)}')"
# OR # OR
argc install argc install
``` ```