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 ./neovim
./python.nix ./python.nix
./fonts.nix ./fonts.nix
./opencode.nix
inputs.sops-nix.homeManagerModules.sops inputs.sops-nix.homeManagerModules.sops
] ]
++ lib.optionals (!isDarwin && !isServer) [ ++ lib.optionals (!isDarwin && !isServer) [
./desktop ./desktop
./catppuccin.nix ./catppuccin.nix
] ]
++ lib.optionals (!isDarwin) [
./opencode.nix
]
++ lib.optionals isDarwin [ ++ lib.optionals isDarwin [
./desktop/sketchybar ./desktop/sketchybar
./catppuccin.nix ./catppuccin.nix
+2 -2
View File
@@ -184,7 +184,7 @@
# llm | glow ollama (local/tailscale) # llm | glow ollama (local/tailscale)
def l [...args] { llm prompt -m llama3.2:3b -t std ...$args | glow } def l [...args] { llm prompt -m llama3.2:3b -t std ...$args | glow }
# llm | glow groq (cloud) # 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 = '' extraEnv = ''
starship init nu | save -f ~/.cache/starship/init.nu starship init nu | save -f ~/.cache/starship/init.nu
@@ -239,7 +239,7 @@
llm prompt -m llama3.2:3b -t std $argv | glow llm prompt -m llama3.2:3b -t std $argv | glow
''; '';
}; };
lg = { lgroq = {
body = '' body = ''
if test -f "$GROQ_API_KEY" if test -f "$GROQ_API_KEY"
set -x GROQ_API_KEY (cat $GROQ_API_KEY) set -x GROQ_API_KEY (cat $GROQ_API_KEY)