fix llm module

This commit is contained in:
Daylin Morgan 2025-01-16 14:47:07 -06:00
parent d27d5b9a52
commit 10bc61746e
Signed by: daylin
GPG key ID: 950D13E9719334AD
3 changed files with 4 additions and 20 deletions

View file

@ -1,25 +1,10 @@
{ {
pkgs,
config, config,
mkOizysModule,
flake, flake,
mkOizysModule,
... ...
}: }:
let
selfPackages = (flake.pkgs "self");
pyWithLlm = (
pkgs.python3.withPackages (_: [
selfPackages.llm
selfPackages.llm-claude-3
])
);
llm-with-plugins = (
pkgs.writeShellScriptBin "llm" ''
exec ${pyWithLlm}/bin/llm "$@"
''
);
in
mkOizysModule config "llm" { mkOizysModule config "llm" {
environment.systemPackages = [ llm-with-plugins ]; environment.systemPackages = [ (flake.pkgs "self").llm-with-plugins ];
} }

View file

@ -8,4 +8,3 @@
llm-with-plugins = pkgs.callPackage ./llm/llm-with-plugins { }; llm-with-plugins = pkgs.callPackage ./llm/llm-with-plugins { };
} }

View file

@ -5,7 +5,7 @@
let let
inherit (pkgs) python3Packages; inherit (pkgs) python3Packages;
llm = python3Packages.callPackage ../llm { }; llm = python3Packages.callPackage ../llm { };
llm-claude-3 = python3Packages.callPackage ../llm-plugins/llm-claude-3 { }; llm-claude-3 = python3Packages.callPackage ../llm-claude-3 { };
pyWithLlm = ( pyWithLlm = (
pkgs.python3.withPackages (_: [ pkgs.python3.withPackages (_: [