mirror of
https://github.com/daylinmorgan/oizys.git
synced 2025-01-22 03:07:31 -06:00
fix llm module
This commit is contained in:
parent
d27d5b9a52
commit
10bc61746e
3 changed files with 4 additions and 20 deletions
|
@ -1,25 +1,10 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
mkOizysModule,
|
||||
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" {
|
||||
environment.systemPackages = [ llm-with-plugins ];
|
||||
environment.systemPackages = [ (flake.pkgs "self").llm-with-plugins ];
|
||||
}
|
||||
|
|
|
@ -6,6 +6,5 @@
|
|||
|
||||
distrobox = pkgs.callPackage ./distrobox { };
|
||||
|
||||
llm-with-plugins = pkgs.callPackage ./llm/llm-with-plugins {};
|
||||
llm-with-plugins = pkgs.callPackage ./llm/llm-with-plugins { };
|
||||
}
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
let
|
||||
inherit (pkgs) python3Packages;
|
||||
llm = python3Packages.callPackage ../llm { };
|
||||
llm-claude-3 = python3Packages.callPackage ../llm-plugins/llm-claude-3 { };
|
||||
llm-claude-3 = python3Packages.callPackage ../llm-claude-3 { };
|
||||
|
||||
pyWithLlm = (
|
||||
pkgs.python3.withPackages (_: [
|
||||
|
|
Loading…
Reference in a new issue