Files
OpenLLM/Formula/openllm.rb

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.4.0"
license "Apache-2.0"
head "https://github.com/bentoml/OpenLLM, branch: main"
url "https://github.com/bentoml/OpenLLM/archive/v0.4.0.tar.gz"
sha256 "63ec0285b6ab674ac7c1531b6ac9659cb66b8c5448ef21a15e25a2fb2e92a70c"
on_linux do
url "https://github.com/bentoml/OpenLLM/releases/download/v0.4.0/openllm-0.4.0-x86_64-unknown-linux-musl.tar.gz"
sha256 "8f645a8526e3404b481f0225775d373208fb57d31c8ef263339da4474dd13c35"
end
on_macos do
on_arm do
url "https://github.com/bentoml/OpenLLM/releases/download/v0.4.0/openllm-0.4.0-aarch64-apple-darwin.tar.gz"
sha256 "9b01123ca836145d4efa55d9df68cd87f070cf727090c297aebaa8580aaee315"
end
on_intel do
url "https://github.com/bentoml/OpenLLM/releases/download/v0.4.0/openllm-0.4.0-x86_64-apple-darwin.tar.gz"
sha256 "1fc1d873ea8d95b81133a2930fb09b8209775c8ddd851b6de6d995e76373b546"
end
end
def install
on_linux do
bin.install "openllm-0.4.0-x86_64-unknown-linux-musl" => "openllm"
end
on_macos do
on_arm do
bin.install "openllm-0.4.0-aarch64-apple-darwin" => "openllm"
end
on_intel do
bin.install "openllm-0.4.0-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