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.40"
license "Apache-2.0"
head "https://github.com/bentoml/OpenLLM, branch: main"
url "https://github.com/bentoml/OpenLLM/archive/v0.4.40.tar.gz"
sha256 "c5561521bb9be611e07f6d800dbdb5719b5ca12bf3e0e5b4b24e80d2dfa1cdc6"
on_linux do
url "https://github.com/bentoml/OpenLLM/releases/download/v0.4.40/openllm-0.4.40-x86_64-unknown-linux-musl.tar.gz"
sha256 "cc18596aea78528cd802a58b5b8886b60188fdb953c7869f4fec85ca764ce3cc"
end
on_macos do
on_arm do
url "https://github.com/bentoml/OpenLLM/releases/download/v0.4.40/openllm-0.4.40-aarch64-apple-darwin.tar.gz"
sha256 "4c23cc459887afbfc55ebd776f8ebac0aee0ae3c71ddfbb27451bf44896b8722"
end
on_intel do
url "https://github.com/bentoml/OpenLLM/releases/download/v0.4.40/openllm-0.4.40-x86_64-apple-darwin.tar.gz"
sha256 "293768dfa989b2647a5e12927adf0d5a516aa2a57ed164462dd2d93373819ac3"
end
end
def install
on_linux do
bin.install "openllm-0.4.40-x86_64-unknown-linux-musl" => "openllm"
end
on_macos do
on_arm do
bin.install "openllm-0.4.40-aarch64-apple-darwin" => "openllm"
end
on_intel do
bin.install "openllm-0.4.40-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