fix: extraction of functions_dir for symlink (#103)

This commit is contained in:
Eugen Eisler
2024-09-17 23:53:26 +02:00
committed by GitHub
parent e87d3481d9
commit 8aeb2d4301
2 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -471,7 +471,7 @@ link-code-interpreter() {
# @cmd Install this repo to aichat functions_dir
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
_die "error: your aichat version don't support function calling"
fi
+1 -1
View File
@@ -81,7 +81,7 @@ argc build
Symlink this repo directory to AIChat's **functions_dir**:
```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
argc install
```