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.2.21"
license "Apache-2.0"
head "https://github.com/bentoml/OpenLLM, branch: main"
url "https://github.com/bentoml/OpenLLM/archive/v0.2.21.tar.gz"
sha256 "836beac46158865a9a9471bf80b4b1377975c8bbf7683d7a9c40a8050375dc1b"
on_linux do
url "https://github.com/bentoml/OpenLLM/releases/download/v0.2.21/openllm-0.2.21-x86_64-unknown-linux-musl.tar.gz"
sha256 "b067150904b9550456bb3bb640aef94a56b2a4156889490cba35a1a5e4639f83"
end
on_macos do
on_arm do
url "https://github.com/bentoml/OpenLLM/releases/download/v0.2.21/openllm-0.2.21-aarch64-apple-darwin.tar.gz"
sha256 "42d5fcbcc5a48f519e7cfc93846bacf2e55f879c199db7f2e31c0e743a4fe4fa"
end
on_intel do
url "https://github.com/bentoml/OpenLLM/releases/download/v0.2.21/openllm-0.2.21-x86_64-apple-darwin.tar.gz"
sha256 "d1e52ae02791920c4e68a3ee47df37fcb54542e0b373370e338f04461b718dd8"
end
end
def install
on_linux do
bin.install "openllm-0.2.21-x86_64-unknown-linux-musl" => "openllm"
end
on_macos do
on_arm do
bin.install "openllm-0.2.21-aarch64-apple-darwin" => "openllm"
end
on_intel do
bin.install "openllm-0.2.21-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