mirror of
https://github.com/daylinmorgan/oizys.git
synced 2025-01-22 07:07:32 -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,
|
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 ];
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,4 +8,3 @@
|
||||||
|
|
||||||
llm-with-plugins = pkgs.callPackage ./llm/llm-with-plugins { };
|
llm-with-plugins = pkgs.callPackage ./llm/llm-with-plugins { };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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 (_: [
|
||||||
|
|
Loading…
Reference in a new issue