This commit is contained in:
ParetoOptimalDev 2023-12-29 06:33:36 -08:00 committed by GitHub
commit 4f7273c882
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -110,6 +110,15 @@
type = "app"; type = "app";
program = "${self.packages.${system}.default}/bin/llama-server"; program = "${self.packages.${system}.default}/bin/llama-server";
}; };
apps.llama-server-openai-proxy = {
type = "app";
program = "${
(let pythonWithPkgs = pkgs.python3.withPackages (ps: with ps; [ flask requests ]);
in pkgs.writeShellScriptBin "run-openai-proxy" ''
${pythonWithPkgs}/bin/python3 ${self}/examples/server/api_like_OAI.py
'')
}/bin/run-openai-proxy";
};
apps.llama-embedding = { apps.llama-embedding = {
type = "app"; type = "app";
program = "${self.packages.${system}.default}/bin/embedding"; program = "${self.packages.${system}.default}/bin/embedding";