refactor: numerous improvements (#32)

This commit is contained in:
sigoden
2024-06-07 21:36:34 +08:00
committed by GitHub
parent e1d895cc9a
commit 63df67acea
11 changed files with 159 additions and 115 deletions
+2 -2
View File
@@ -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"
}