fix: install to aichat functions_dir (#49)
This commit is contained in:
+1
-1
@@ -452,7 +452,7 @@ clean@agent() {
|
|||||||
|
|
||||||
# @cmd Install this repo to aichat functions_dir
|
# @cmd Install this repo to aichat functions_dir
|
||||||
install() {
|
install() {
|
||||||
functions_dir="$(aichat --info | grep functions_dir | awk '{print $2}')"
|
functions_dir="$(aichat --info | grep -w functions_dir | awk '{print $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
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ hackernews
|
|||||||
Symlink this repo directory to aichat **functions_dir**:
|
Symlink this repo directory to aichat **functions_dir**:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
ln -s "$(pwd)" "$(aichat --info | grep functions_dir | awk '{print $2}')"
|
ln -s "$(pwd)" "$(aichat --info | grep -w functions_dir | awk '{print $2}')"
|
||||||
# OR
|
# OR
|
||||||
argc install
|
argc install
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user