From 86205fcc27fb6ab0b013ef6971c8a50fc92909f4 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Thu, 8 Aug 2024 13:53:16 -0500 Subject: [PATCH] add llm based functions for demoing claude --- home/private_dot_config/zsh/functions/executable_cht | 8 ++++++++ .../zsh/functions/{large-git => executable_large-git} | 0 home/private_dot_config/zsh/functions/executable_q | 7 +------ home/private_dot_config/zsh/functions/executable_qc | 3 +++ home/private_dot_config/zsh/functions/executable_qe | 3 +++ 5 files changed, 15 insertions(+), 6 deletions(-) create mode 100644 home/private_dot_config/zsh/functions/executable_cht rename home/private_dot_config/zsh/functions/{large-git => executable_large-git} (100%) create mode 100644 home/private_dot_config/zsh/functions/executable_qc create mode 100644 home/private_dot_config/zsh/functions/executable_qe diff --git a/home/private_dot_config/zsh/functions/executable_cht b/home/private_dot_config/zsh/functions/executable_cht new file mode 100644 index 0000000..b134d86 --- /dev/null +++ b/home/private_dot_config/zsh/functions/executable_cht @@ -0,0 +1,8 @@ +#!/usr/bin/env zsh + +if [ $# -eq 0 ]; +then + curl -s cheat.sh | less -R +else + curl -s cheat.sh/${@} | less -R +fi diff --git a/home/private_dot_config/zsh/functions/large-git b/home/private_dot_config/zsh/functions/executable_large-git similarity index 100% rename from home/private_dot_config/zsh/functions/large-git rename to home/private_dot_config/zsh/functions/executable_large-git diff --git a/home/private_dot_config/zsh/functions/executable_q b/home/private_dot_config/zsh/functions/executable_q index b134d86..c7164f1 100644 --- a/home/private_dot_config/zsh/functions/executable_q +++ b/home/private_dot_config/zsh/functions/executable_q @@ -1,8 +1,3 @@ #!/usr/bin/env zsh -if [ $# -eq 0 ]; -then - curl -s cheat.sh | less -R -else - curl -s cheat.sh/${@} | less -R -fi +llm -s "Answer in as few words as possible. Use a brief style with short replies." -m claude-3.5-sonnet "$*" diff --git a/home/private_dot_config/zsh/functions/executable_qc b/home/private_dot_config/zsh/functions/executable_qc new file mode 100644 index 0000000..0c867b9 --- /dev/null +++ b/home/private_dot_config/zsh/functions/executable_qc @@ -0,0 +1,3 @@ +#!/usr/bin/env zsh + +llm -m claude-3-haiku "$*" diff --git a/home/private_dot_config/zsh/functions/executable_qe b/home/private_dot_config/zsh/functions/executable_qe new file mode 100644 index 0000000..6014812 --- /dev/null +++ b/home/private_dot_config/zsh/functions/executable_qe @@ -0,0 +1,3 @@ +#!/usr/bin/env zsh + +llm -m claude-3-opus "$*"