Open irthomasthomas opened 1 year ago
makefilename() {
file_content="$1"
# Truncate to <=400 tokens
trunc_content=$(ttok "$file_content" -t 400)
llm_template="makefilename"
echo "$trunc_content" | llm -m 3.5 -t $llm_template -o temperature 0 -o max_tokens 15
}
prompt: $input
system: Generate a file name for supplied input. Following Linux best practice naming
conventions.
That file name generator prompt is very unreliable. I must have a better version somewhere.
Temporary location for my collection of (mostly ZSH) functions using llm cli.