|
1 | 1 | class Localai < Formula |
2 | | - include Language::Python::Virtualenv |
3 | | - |
4 | 2 | desc "OpenAI alternative" |
5 | 3 | homepage "https://localai.io" |
6 | | - url "https://github.com/mudler/LocalAI/archive/refs/tags/v3.3.2.tar.gz" |
7 | | - sha256 "e8c10990e41f4e1a89fecfa5eb26a5ad555f904bbb08867171a05c5dd715c642" |
| 4 | + url "https://github.com/mudler/LocalAI/archive/refs/tags/v3.4.0.tar.gz" |
| 5 | + sha256 "a3393c91b777c93bfcbe04557e823a4d52dc130669e505c2dba2633db37adef0" |
8 | 6 | license "MIT" |
9 | 7 | head "https://github.com/mudler/LocalAI.git", branch: "master" |
10 | 8 |
|
11 | 9 | bottle do |
12 | | - sha256 cellar: :any_skip_relocation, arm64_sequoia: "42691f9815e0ce8e13e92b1094b7fd8f1ecee4c2282703316d6751e19c0e39b7" |
13 | | - sha256 cellar: :any_skip_relocation, arm64_sonoma: "7be6c5223437fc93f44776f78bce8404c3af156ae1f780e9a6174e337516a3db" |
14 | | - sha256 cellar: :any_skip_relocation, arm64_ventura: "2dc56ed893591c8736ab66a605ea98a78f366738a059023598e25dde7898a550" |
15 | | - sha256 cellar: :any_skip_relocation, sonoma: "1cec2ae87b56d9b1f0937f06fd548d371350c94e50db49adfd1aa819e70f5cb0" |
16 | | - sha256 cellar: :any_skip_relocation, ventura: "628892217a9f34991fd8e751f7987dd36a46e9dd73fa5c6d7571f3b75d9e5bae" |
17 | | - sha256 cellar: :any_skip_relocation, x86_64_linux: "d2248f7b16ac7ec5f69c546d5a1c77548c11a4ea266f44d6e9e6b3f54ca0975b" |
| 10 | + sha256 cellar: :any_skip_relocation, arm64_sequoia: "b6deca014aa1fd1b0e0cd061da8f84baadc47bf5a022352556a479ed3143b41d" |
| 11 | + sha256 cellar: :any_skip_relocation, arm64_sonoma: "95ddbf84fd1f70d8d74bb5e09c8f3cb3668d778d3b450068c297c6c9bb519f9b" |
| 12 | + sha256 cellar: :any_skip_relocation, arm64_ventura: "4f8e826651bd977d68c51f6a6caecb0bccec4c3689e2338ddce39a732a881e00" |
| 13 | + sha256 cellar: :any_skip_relocation, sonoma: "617d2fa70ed913c951e83521143686ada51f9ec6e7832fc472ea9546ff2063bd" |
| 14 | + sha256 cellar: :any_skip_relocation, ventura: "701ff0eb1026724704e7637cb6127641209e1c02bea137d15c7e70a06eba1234" |
| 15 | + sha256 cellar: :any_skip_relocation, x86_64_linux: "6359b85d189ae70f7af2c19b63492e1385049d69e9efcb3fbd34108572869584" |
18 | 16 | end |
19 | 17 |
|
20 | | - depends_on "abseil" => :build |
21 | | - depends_on "cmake" => :build |
22 | 18 | depends_on "go" => :build |
23 | | - depends_on "go-rice" => :build |
24 | | - depends_on "grpc" => :build |
25 | 19 | depends_on "protobuf" => :build |
26 | 20 | depends_on "protoc-gen-go" => :build |
27 | 21 | depends_on "protoc-gen-go-grpc" => :build |
28 | | - depends_on "[email protected]" => :build |
29 | | - |
30 | | - resource "grpcio-tools" do |
31 | | - url "https://files.pythonhosted.org/packages/90/c8/bca79cb8c14bb63027831039919c801db9f593c7504c09433934f5dff6a4/grpcio_tools-1.74.0.tar.gz" |
32 | | - sha256 "88ab9eb18b6ac1b4872add6b394073bd8d44eee7c32e4dc60a022e25ffaffb95" |
33 | | - end |
34 | | - |
35 | | - def python3 |
36 | | - which("python3.13") |
37 | | - end |
38 | 22 |
|
39 | 23 | def install |
40 | | - # Fix to CMake Error at encodec.cpp/ggml/CMakeLists.txt:1 (cmake_minimum_required): |
41 | | - ENV["CMAKE_POLICY_VERSION_MINIMUM"] = "3.5" |
42 | | - |
43 | 24 | ENV["SDKROOT"] = MacOS.sdk_path if OS.mac? |
44 | 25 |
|
45 | | - venv = virtualenv_create(buildpath/"venv", python3) |
46 | | - venv.pip_install resources |
47 | | - ENV.prepend_path "PATH", venv.root/"bin" |
48 | | - |
49 | 26 | system "make", "build", "VERSION=#{version}" |
50 | 27 | bin.install "local-ai" |
51 | 28 | end |
|
0 commit comments