update llm offerings

This commit is contained in:
Daylin Morgan 2025-02-06 00:24:45 -06:00
parent a8df050426
commit a340cfc0ca
Signed by: daylin
GPG key ID: 950D13E9719334AD
4 changed files with 45 additions and 8 deletions

View file

@ -12,15 +12,15 @@
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "llm-claude-3"; pname = "llm-anthropic";
version = "0.8"; version = "0.12";
pyproject = true; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "simonw"; owner = "simonw";
repo = "llm-claude-3"; repo = "llm-anthropic";
rev = version; rev = version;
hash = "sha256-XhmxUo+nM6el17AVRUq+RLT5SEl+Q0eWhouU9WDZJl0="; hash = "sha256-7+5j5jZBFfaaqnfjvLTI+mz1PUuG8sB5nD59UCpJuR4=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -0,0 +1,35 @@
{
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
wheel,
# deps
httpx,
ijson,
...
}:
buildPythonPackage rec {
pname = "llm-gemini";
version = "0.10";
pyproject = true;
src = fetchFromGitHub {
owner = "simonw";
repo = "llm-gemini";
rev = version;
hash = "sha256-+ghsBvEY8GQAphdvG7Rdu3T/7yz64vmkuA1VGvqw1fU=";
};
nativeBuildInputs = [
setuptools
wheel
];
dependencies = [ httpx ijson ];
dontCheckRuntimeDeps = true;
}

View file

@ -5,12 +5,14 @@
let let
inherit (pkgs) python3Packages; inherit (pkgs) python3Packages;
llm = python3Packages.callPackage ../llm { }; llm = python3Packages.callPackage ../llm { };
llm-claude-3 = python3Packages.callPackage ../llm-claude-3 { }; llm-anthropic = python3Packages.callPackage ../llm-anthropic { };
llm-gemini = python3Packages.callPackage ../llm-gemini { };
pyWithLlm = ( pyWithLlm = (
pkgs.python3.withPackages (_: [ pkgs.python3.withPackages (_: [
llm llm
llm-claude-3 llm-anthropic
llm-gemini
]) ])
); );
in in

View file

@ -22,7 +22,7 @@
let let
llm = buildPythonPackage rec { llm = buildPythonPackage rec {
pname = "llm"; pname = "llm";
version = "0.17.1"; version = "0.21";
pyproject = true; pyproject = true;
build-system = [ setuptools ]; build-system = [ setuptools ];
@ -33,7 +33,7 @@ let
owner = "simonw"; owner = "simonw";
repo = "llm"; repo = "llm";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-6OO0SIIxChM5HRJoUM4CYGbsINmc3i+iyL/oahLHhrY="; hash = "sha256-gxmhdczgbcvbWJQTy+gek499C/3jm9WL5vKZmaGVWgU=";
}; };
# patches = [ ./001-disable-install-uninstall-commands.patch ]; # patches = [ ./001-disable-install-uninstall-commands.patch ];