llm: add enable-llm-gguf override
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
enable-llm-anthropic ? false,
|
||||
enable-llm-cmd ? false,
|
||||
enable-llm-gemini ? false,
|
||||
enable-llm-gguf ? false,
|
||||
}:
|
||||
|
||||
let
|
||||
@@ -13,6 +14,7 @@ let
|
||||
llm-anthropic
|
||||
llm-cmd
|
||||
llm-gemini
|
||||
llm-gguf
|
||||
;
|
||||
in
|
||||
|
||||
@@ -22,6 +24,7 @@ toPythonApplication (
|
||||
(finalAttrs.propagatedBuildInputs or [ ])
|
||||
++ lib.optionals enable-llm-anthropic [ llm-anthropic ]
|
||||
++ lib.optionals enable-llm-cmd [ llm-cmd ]
|
||||
++ lib.optionals enable-llm-gemini [ llm-gemini ];
|
||||
++ lib.optionals enable-llm-gemini [ llm-gemini ]
|
||||
++ lib.optionals enable-llm-gguf [ llm-gguf ];
|
||||
})
|
||||
)
|
||||
|
||||
@@ -27,12 +27,12 @@ buildPythonPackage rec {
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
llm
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
httpx
|
||||
llama-cpp-python
|
||||
llm
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "llm_gguf" ];
|
||||
|
||||
Reference in New Issue
Block a user