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.5"
license "Apache-2.0"
head "https://github.com/bentoml/OpenLLM, branch: main"
url "https://github.com/bentoml/OpenLLM/archive/v0.4.5.tar.gz"
sha256 "44f30af80d301448e28fd1a0cfe6487f9102f6d2baf41e8a78a031423ff1f1a0"
on_linux do
url "https://github.com/bentoml/OpenLLM/releases/download/v0.4.5/openllm-0.4.5-x86_64-unknown-linux-musl.tar.gz"
sha256 "be2c745c8b521ed391d1feacff7eff1669e3af9fb0a7e9d46f9b1af0086f72b0"
end
on_macos do
on_arm do
url "https://github.com/bentoml/OpenLLM/releases/download/v0.4.5/openllm-0.4.5-aarch64-apple-darwin.tar.gz"
sha256 "bea542537326ed8453f0584cbb10da8c70e3c485d154cf97df7c520fb2addfc7"
end
on_intel do
url "https://github.com/bentoml/OpenLLM/releases/download/v0.4.5/openllm-0.4.5-x86_64-apple-darwin.tar.gz"
sha256 "9e65efbe9358a09cc4d191fdf63ad8538809f038cd05c8817cb11e373c14e50d"
end
end
def install
on_linux do
bin.install "openllm-0.4.5-x86_64-unknown-linux-musl" => "openllm"
end
on_macos do
on_arm do
bin.install "openllm-0.4.5-aarch64-apple-darwin" => "openllm"
end
on_intel do
bin.install "openllm-0.4.5-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