diff options
| author | sigoden <sigoden@gmail.com> | 2024-06-07 21:36:34 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-07 21:36:34 +0800 |
| commit | 63df67acea19b3708d34ef3b656c1b784c2a72f4 (patch) | |
| tree | 740ff6c276131898e59bf1495abc238d3fdfb9a7 /tools | |
| parent | e1d895cc9abb0f7ffac8acc043746cbe2e5f4fe1 (diff) | |
| download | llm-functions-docker-63df67acea19b3708d34ef3b656c1b784c2a72f4.tar.gz | |
refactor: numerous improvements (#32)
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/demo_tool.js | 2 | ||||
| -rwxr-xr-x | tools/save_file.sh | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tools/demo_tool.js b/tools/demo_tool.js index d47fa59..4fd6f04 100644 --- a/tools/demo_tool.js +++ b/tools/demo_tool.js @@ -12,5 +12,5 @@ * @param {Args} args */ exports.run = function run(args) { - console.log(args); + console.log(JSON.stringify(args, null, 2)); } diff --git a/tools/save_file.sh b/tools/save_file.sh index 8d4d43c..c51079f 100755 --- a/tools/save_file.sh +++ b/tools/save_file.sh @@ -6,9 +6,9 @@ set -e # @option --contents! The contents to save. main() { - base_dir="$LLM_FUNCTIONS_DIR/tmp/files" - output_file="$base_dir/$argc_file_name" + base_dir="${LLM_TOOL_CACHE_DIR:-/tmp}" mkdir -p "$base_dir" + output_file="$base_dir/$argc_file_name" echo "$argc_contents" > "$output_file" echo "$output_file" } |
