llm: add enable-llm-gemini override
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
python3Packages,
|
||||
enable-llm-anthropic ? false,
|
||||
enable-llm-cmd ? false,
|
||||
enable-llm-gemini ? false,
|
||||
}:
|
||||
|
||||
let
|
||||
@@ -11,6 +12,7 @@ let
|
||||
llm
|
||||
llm-anthropic
|
||||
llm-cmd
|
||||
llm-gemini
|
||||
;
|
||||
in
|
||||
|
||||
@@ -19,6 +21,7 @@ toPythonApplication (
|
||||
propagatedBuildInputs =
|
||||
(finalAttrs.propagatedBuildInputs or [ ])
|
||||
++ lib.optionals enable-llm-anthropic [ llm-anthropic ]
|
||||
++ lib.optionals enable-llm-cmd [ llm-cmd ];
|
||||
++ lib.optionals enable-llm-cmd [ llm-cmd ]
|
||||
++ lib.optionals enable-llm-gemini [ llm-gemini ];
|
||||
})
|
||||
)
|
||||
|
||||
@@ -27,10 +27,10 @@ buildPythonPackage rec {
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
llm
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
llm
|
||||
httpx
|
||||
ijson
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user