python3Packages.llm-llama-server: init at 0.2
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
setuptools,
|
||||
llm,
|
||||
llm-llama-server,
|
||||
pytestCheckHook,
|
||||
writableTmpDirAsHomeHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "llm-llama-server";
|
||||
version = "0.2";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "simonw";
|
||||
repo = "llm-llama-server";
|
||||
tag = version;
|
||||
hash = "sha256-jtFSfGu3JhNUfTsspY+OFLTMt9jQrh6R05sK9KBOKTE=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
llm
|
||||
];
|
||||
|
||||
dependencies = [ ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
writableTmpDirAsHomeHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "llm_llama_server" ];
|
||||
|
||||
passthru.tests = llm.mkPluginTest llm-llama-server;
|
||||
|
||||
meta = {
|
||||
description = "LLM plugin providing access to Mistral models using the Mistral API";
|
||||
homepage = "Interact with llama-server models";
|
||||
changelog = "https://github.com/simonw/llm-llama-server/releases/tag/${version}/CHANGELOG.md";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ philiptaron ];
|
||||
};
|
||||
}
|
||||
@@ -75,6 +75,7 @@ let
|
||||
llm-groq ? false,
|
||||
llm-hacker-news ? false,
|
||||
llm-jq ? false,
|
||||
llm-llama-server ? false,
|
||||
llm-mistral ? false,
|
||||
llm-ollama ? false,
|
||||
llm-openai-plugin ? false,
|
||||
|
||||
@@ -8320,6 +8320,8 @@ self: super: with self; {
|
||||
|
||||
llm-jq = callPackage ../development/python-modules/llm-jq { };
|
||||
|
||||
llm-llama-server = callPackage ../development/python-modules/llm-llama-server { };
|
||||
|
||||
llm-mistral = callPackage ../development/python-modules/llm-mistral { };
|
||||
|
||||
llm-ollama = callPackage ../development/python-modules/llm-ollama { };
|
||||
|
||||
Reference in New Issue
Block a user