File tree 3 files changed +16
-7
lines changed
3 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -549,8 +549,8 @@ link-code-interpreter() {
549
549
_link_tool $1 code_interpreter
550
550
}
551
551
552
- # @cmd Install this repo to aichat functions_dir
553
- install () {
552
+ # @cmd Link this repo to aichat functions_dir
553
+ link-to-aichat () {
554
554
functions_dir=" $( aichat --info | grep -w functions_dir | awk ' {$1=""; print substr($0,2)}' ) "
555
555
if [[ -z " $functions_dir " ]]; then
556
556
_die " error: your aichat version don't support function calling"
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ Make sure you have the following tools installed:
25
25
26
26
``` sh
27
27
git clone https://github.com/sigoden/llm-functions
28
+ cd llm-functions
28
29
```
29
30
30
31
### 2. Build tools and agents
@@ -82,14 +83,22 @@ argc build
82
83
argc check
83
84
```
84
85
85
- ### 3. Install to AIChat
86
+ ### 3. Link LLM-functions and AIChat
86
87
87
- Symlink this repo directory to AIChat's ** functions_dir** :
88
+ AIChat expects LLM-functions to be placed in AIChat's ** functions_dir** so that AIChat can use the tools and agents that LLM-functions provides.
89
+
90
+ You can symlink this repository directory to AIChat's ** functions_dir** with:
88
91
89
92
``` sh
90
93
ln -s " $( pwd) " " $( aichat --info | sed -n ' s/^functions_dir\s\+//p' ) "
91
94
# OR
92
- argc install
95
+ argc link-to-aichat
96
+ ```
97
+
98
+ Alternatively, you can tell AIChat where the LLM-functions directory is by using an environment variable:
99
+
100
+ ``` sh
101
+ export AICHAT_FUNCTIONS_DIR=" $( pwd) "
93
102
```
94
103
95
104
### 4. Start using the functions
Original file line number Diff line number Diff line change @@ -70,8 +70,8 @@ argc link-web-search web_search_tavily.sh
70
70
argc link-code-interpreter execute_py_code.py
71
71
72
72
# -------- Misc --------
73
- # Install this repo to aichat functions_dir
74
- argc install
73
+ # Link this repo to aichat functions_dir
74
+ argc link-to-aichat
75
75
# Displays version information for required tools
76
76
argc version
77
77
```
You can’t perform that action at this time.
0 commit comments