From 444b4b2a626327f74954e6a6f42d4bf48c948c4b Mon Sep 17 00:00:00 2001 From: sigoden Date: Thu, 27 Jun 2024 05:39:43 +0800 Subject: [PATCH] fix: install to aichat functions_dir (#49) --- Argcfile.sh | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Argcfile.sh b/Argcfile.sh index 7f0a0d2..ba142c4 100644 --- a/Argcfile.sh +++ b/Argcfile.sh @@ -452,7 +452,7 @@ clean@agent() { # @cmd Install this repo to aichat functions_dir 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 _die "error: your aichat version don't support function calling" fi diff --git a/README.md b/README.md index 7fa267f..bdf5fdd 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ hackernews Symlink this repo directory to aichat **functions_dir**: ```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 argc install ```