fix: install failed since wrong aichat version (#5)
This commit is contained in:
1 parent
07ce5ccaf6
commit
1ca118a301
1 file changed
+3
@@ -62,6 +62,9 @@ build-win-shims() {
|
||||
# @cmd Install this repo to aichat functions_dir
|
||||
install() {
|
||||
functions_dir="$(aichat --info | grep functions_dir | awk '{print $2}')"
|
||||
if [[ -z "$functions_dir" ]]; then
|
||||
_die "error: your aichat version don't support function calling"
|
||||
fi
|
||||
if [[ ! -e "$functions_dir" ]]; then
|
||||
ln -s "$(pwd)" "$functions_dir"
|
||||
echo "$functions_dir symlinked"
|
||||
|
||||
Reference in new issue
Block a user