Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions Formula/t/text-embeddings-inference.rb
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
class TextEmbeddingsInference < Formula
desc "Blazing fast inference solution for text embeddings models"
homepage "https://huggingface.co/docs/text-embeddings-inference/quick_tour"
url "https://github.com/huggingface/text-embeddings-inference/archive/refs/tags/v1.7.3.tar.gz"
sha256 "64842ec3ed0b87663a628c493dede0cc62ca0377b387562c5db4d68287d4dd7a"
url "https://github.com/huggingface/text-embeddings-inference/archive/refs/tags/v1.7.4.tar.gz"
sha256 "62840db84a37fdcfdd8061b796c045a92afaa6591147df81deb621a1dd34bbd9"
license "Apache-2.0"

bottle do
sha256 cellar: :any_skip_relocation, arm64_sequoia: "2919c3e2cb726ef7d456fa9da2d54f01cdf21038097966a6aef715f21c1f6910"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "79d73b0d7898967c0d914b49cd9e31f7f09cc47293f75f301d3bd288ac7a9256"
sha256 cellar: :any_skip_relocation, arm64_ventura: "d5c8a909007715e7d83f0ce029cfe40d96836c3d0137f3d4a7d583b7098e39f0"
sha256 cellar: :any_skip_relocation, sonoma: "3f4f95c2380e2d4a2e384d2bed5853e2c3d253324092cd87bb7c81f7f56029a9"
sha256 cellar: :any_skip_relocation, ventura: "3cd4c7514c0f1753658f8faac07c54822e3192da829e1e4e7ad7556e52fbd74f"
sha256 cellar: :any_skip_relocation, arm64_linux: "eae5be686347c6904b9e10932c3515da2aec483eb29501ccd5fd0a0795dab145"
sha256 cellar: :any_skip_relocation, x86_64_linux: "010ae6c7bee386589d7f93d3df456a69143d84a09b4dc814f07e04e1079fb700"
sha256 cellar: :any_skip_relocation, arm64_sequoia: "274e66c040b06d75a9dcbb85dc1d722c00aeb861fbc73ac51d5467404b39b11b"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "a92cd1e6c94651713b81946e03d5d49de492ab639388cc0e1c18bac96d2fa3c1"
sha256 cellar: :any_skip_relocation, arm64_ventura: "24d469041535ffe244194119cd559f66181e9686bee2db3c7a3bc6931e32947e"
sha256 cellar: :any_skip_relocation, sonoma: "5ad60c4dc1ef3f1491f6fb36df2a3957b38b44475443d8360b8c926abc121f6e"
sha256 cellar: :any_skip_relocation, ventura: "4243d351fd087000ca3d91692491443d7f577e44d774353bfa0380c6cee262b8"
sha256 cellar: :any_skip_relocation, arm64_linux: "38bfda949a75f2a58e05d75c78896a646c237c3fddb48d7d17c4ecab210a7af4"
sha256 cellar: :any_skip_relocation, x86_64_linux: "06f79973355e0816f90b0245673ee594cf20d5503b5ca50741791a6a79b256ad"
end

depends_on "pkgconf" => :build
Expand All @@ -26,9 +26,9 @@ def install

test do
port = free_port
fork do
exec bin/"text-embeddings-router", "-p", port.to_s, "--model-id", "sentence-transformers/all-MiniLM-L6-v2"
end
spawn bin/"text-embeddings-router", "-p", port.to_s, "--model-id", "sentence-transformers/all-MiniLM-L6-v2"

sleep 2 if OS.mac? && Hardware::CPU.intel?

data = "{\"inputs\":\"What is Deep Learning?\"}"
header = "Content-Type: application/json"
Expand Down
Loading