Files
OpenLLM/Formula/openllm.rb
2023-08-09 21:14:34 -04:00

48 lines
1.6 KiB
Ruby
Generated

# Generated by tools/update-brew-tap.py. DO NOT EDIT!
# Please refers to the original template file Formula/openllm.rb.j2
# vim: set ft=ruby:
class Openllm < Formula
desc "OpenLLM: Operating LLMs in production"
homepage "https://github.com/bentoml/OpenLLM"
version "0.2.18"
license "Apache-2.0"
head "https://github.com/bentoml/OpenLLM, branch: main"
url "https://github.com/bentoml/OpenLLM/archive/v0.2.18.tar.gz"
sha256 "1a32d01d9e81ebd99222fb9700cea993f66a36846c300c855be3be849b89f60e"
on_linux do
url "https://github.com/bentoml/OpenLLM/releases/download/v0.2.18/openllm-0.2.18-x86_64-unknown-linux-musl.tar.gz"
sha256 "e31c937a4cccda0f6ce5658e7b57cc683fa31062c352b6baef27b9a70ec49c0c"
end
on_macos do
on_arm do
url "https://github.com/bentoml/OpenLLM/releases/download/v0.2.18/openllm-0.2.18-aarch64-apple-darwin.tar.gz"
sha256 "7a645ab4ea894eb5f8cdde5aba3ec20b3286ed80544ca852503b8b78920cbd58"
end
on_intel do
url "https://github.com/bentoml/OpenLLM/releases/download/v0.2.18/openllm-0.2.18-x86_64-apple-darwin.tar.gz"
sha256 "5b41cd88410a3225bd0739bb8d0a8c76c56168c35ad2fd504a0136b7eecfd6d4"
end
end
def install
on_linux do
bin.install "openllm-0.2.18-x86_64-unknown-linux-musl" => "openllm"
end
on_macos do
on_arm do
bin.install "openllm-0.2.18-aarch64-apple-darwin" => "openllm"
end
on_intel do
bin.install "openllm-0.2.18-x86_64-apple-darwin" => "openllm"
end
end
ohai "To get started, run: 'openllm --help'"
ohai "To see supported models, run: 'openllm models'"
end
test do
shell_output "#{bin}/openllm --version"
end
end