diff options
| author | sigoden <sigoden@gmail.com> | 2024-05-18 10:57:12 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-18 10:57:12 +0800 |
| commit | 1ca118a301039fb355aa402b8ba4ff18ad85ede8 (patch) | |
| tree | a1511d098e75e9ab5a2a5b9243d9b1805dafc2d1 | |
| parent | 07ce5ccaf634beee7ab14c86130c8cb659d96e31 (diff) | |
| download | llm-functions-docker-1ca118a301039fb355aa402b8ba4ff18ad85ede8.tar.gz | |
fix: install failed since wrong aichat version (#5)
| -rw-r--r-- | Argcfile.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Argcfile.sh b/Argcfile.sh index ddbc337..117d719 100644 --- a/Argcfile.sh +++ b/Argcfile.sh @@ -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" |
