Changed llm to use groq with lg and ollama with l

This commit is contained in:
2026-06-18 13:38:39 +02:00
parent aa673196ff
commit 3cbabde86a
2 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -18,13 +18,15 @@
./neovim
./python.nix
./fonts.nix
./opencode.nix
inputs.sops-nix.homeManagerModules.sops
]
++ lib.optionals (!isDarwin && !isServer) [
./desktop
./catppuccin.nix
]
++ lib.optionals (!isDarwin) [
./opencode.nix
]
++ lib.optionals isDarwin [
./desktop/sketchybar
./catppuccin.nix
+2 -2
View File
@@ -184,7 +184,7 @@
# llm | glow ollama (local/tailscale)
def l [...args] { llm prompt -m llama3.2:3b -t std ...$args | glow }
# llm | glow groq (cloud)
def lg [...args] { llm prompt -m groq/llama-3.3-70b-versatile -t std ...$args | glow }
def lgroq [...args] { llm prompt -m groq/llama-3.3-70b-versatile -t std ...$args | glow }
'';
extraEnv = ''
starship init nu | save -f ~/.cache/starship/init.nu
@@ -239,7 +239,7 @@
llm prompt -m llama3.2:3b -t std $argv | glow
'';
};
lg = {
lgroq = {
body = ''
if test -f "$GROQ_API_KEY"
set -x GROQ_API_KEY (cat $GROQ_API_KEY)