Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

localai: migrate to [email protected] #201583

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
40 changes: 16 additions & 24 deletions Formula/l/localai.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,45 +19,37 @@
depends_on "abseil" => :build
depends_on "cmake" => :build
depends_on "go" => :build
depends_on "python-setuptools" => :build
depends_on xcode: :build

depends_on "grpc"
depends_on "protobuf"
depends_on "protoc-gen-go"
depends_on "protoc-gen-go-grpc"
depends_on "[email protected]"
depends_on "wget"
depends_on "grpc" => :build
depends_on "protobuf" => :build
depends_on "protoc-gen-go" => :build
depends_on "protoc-gen-go-grpc" => :build
depends_on "[email protected]" => :build

resource "grpcio-tools" do
url "https://files.pythonhosted.org/packages/2a/2f/d2fc30b79d892050a3c40ef8d17d602f4c6eced066d584621c7bbf195b0e/grpcio_tools-1.68.1.tar.gz"
sha256 "2413a17ad16c9c821b36e4a67fc64c37b9e4636ab1c3a07778018801378739ba"
end

def python3
which("python3.12")
which("python3.13")
end

def install

Check failure on line 37 in Formula/l/localai.rb

View workflow job for this annotation

GitHub Actions / macOS 13-arm64

`brew install --verbose --formula --build-bottle localai` failed on macOS Ventura (13) on Apple Silicon!

In file included from /tmp/localai-20241217-8323-f5erph/LocalAI-2.24.2/sources/go-llama.cpp/llama.cpp/ggml.c:248: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Accelerate.framework/Headers/Accelerate.h:27: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage.h:294: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage_CVUtilities.h:48: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:23: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVImageBuffer.h:250:151: error: expected ',' CV_EXPORT const CFStringRef CV_NONNULL kCVImageBufferLogTransferFunctionKey API_AVAILABLE(macosx(14.2), ios(17.2), tvos(17.2), watchos(10.2), visionos(1.1)); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVImageBuffer.h:252:157: error: expected ',' CV_EXPORT const CFStringRef CV_NONNULL kCVImageBufferLogTransferFunction_AppleLog API_AVAILABLE(macosx(14.2), ios(17.2), tvos(17.2), watchos(10.2), visionos(1.1)); ^ In file included from /tmp/localai-20241217-8323-f5erph/LocalAI-2.24.2/sources/go-llama.cpp/llama.cpp/ggml.c:248: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Accelerate.framework/Headers/Accelerate.h:27: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage.h:294: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage_CVUtilities.h:48: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:238:167: error: expected ',' CV_EXPORT const CFStringRef CV_NONNULL kCVPixelBufferOpenGLESCompatibilityKey API_AVAILABLE(ios(6.0), tvos(9.0)) API_UNAVAILABLE(macosx) API_UNAVAILABLE(macCatalyst) API_UNAVAILABLE(visionos) __WATCHOS_PROHIBITED; // CFBoolean ^ /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/os/availability.h:132:209: note: expanded from macro 'API_UNAVAILABLE' #define API_UNAVAILABLE(...) __API_UNAVAILABLE_GET_MACRO(__VA_ARGS__,__API_UNAVAILABLE8,__API_UNAVAILABLE7,__API_UNAVAILABLE6, __API_UNAVAILABLE5, __API_UNAVAILABLE4,__API_UNAVAILABLE3,__API_UNAVAILABLE2,__API_UNAVAILABLE1, 0)(__VA_ARGS__) ^ In file included from /tmp/localai-20241217-8323-f5erph/LocalAI-2.24.2/sources/go-llama.cpp/llama.cpp/ggml.c:248: In file included from /Applications/Xco

Check failure on line 37 in Formula/l/localai.rb

View workflow job for this annotation

GitHub Actions / macOS 14-arm64

`brew install --verbose --formula --build-bottle localai` failed on macOS Sonoma (14) on Apple Silicon!

In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__locale:15: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__memory/shared_ptr.h:14: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__compare/compare_three_way.h:13: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__compare/three_way_comparable.h:12: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__compare/common_comparison_category.h:15: /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/cstddef:46:5: error: <cstddef> tried including <stddef.h> but didn't find libc++'s <stddef.h> header. This usually means that your header search paths are not configured properly. The header search paths should contain the C++ Standard Library headers before any C Standard Library, and you are probably using compiler flags that make that not be the case. 46 | # error <cstddef> tried including <stddef.h> but didn't find libc++'s <stddef.h> header. \ | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/cstddef:59:9: error: no member named 'nullptr_t' in the global namespace 59 | using ::nullptr_t; | ~~^ [ 96%] Built target myclip [100%] Building CXX object examples/grpc-server/CMakeFiles/grpc-server.dir/grpc-server.cpp.o In file included from /tmp/localai-20241217-8304-mf8x5p/LocalAI-2.24.2/backend/cpp/llama-avx2/llama.cpp/examples/grpc-server/grpc-server.cpp:10: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/iostream:43: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/ios:222: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__locale:15: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__memory/shared_ptr.h:22: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__memory/allocation_guard.h:15: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__memory/allocator_traits.h:14: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__memory/construct_at.h:23: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/new:99: /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/cstdlib:90:5: error: <cstdlib> tried including <stdlib.h> but didn't find libc++'s <stdlib.h> header. This usually means that your header search paths are not configured properly. The header search paths should contain the C++ Standard Library headers before any C Standard Library, and you are probably using compiler flags that make that not be the case. 90 | # error <cstdlib> tried including <stdlib.h> but didn't find libc++'s <stdlib.h> header. \ | ^ In file included from /tmp/localai-20241217-8304-mf8x5p/LocalAI-2.24.2/backend/cpp/llama-avx2/llama.cpp/examples/grpc-server/grpc-server.cpp:10: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/iostream:43: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/ios:222: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__locale:15: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__memory/shared_ptr.h:22: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__memory/allocation_guard.h:15: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__memory/allocator_traits.h:14: In file included from /Library/Developer/CommandL

Check failure on line 37 in Formula/l/localai.rb

View workflow job for this annotation

GitHub Actions / macOS 15-arm64

`brew install --verbose --formula --build-bottle localai` failed on macOS Sequoia (15) on Apple Silicon!

In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/__locale:15: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/__memory/shared_ptr.h:14: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/__compare/compare_three_way.h:13: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/__compare/three_way_comparable.h:12: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/__compare/common_comparison_category.h:15: /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/cstddef:46:5: error: <cstddef> tried including <stddef.h> but didn't find libc++'s <stddef.h> header. This usually means that your header search paths are not configured properly. The header search paths should contain the C++ Standard Library headers before any C Standard Library, and you are probably using compiler flags that make that not be the case. 46 | # error <cstddef> tried including <stddef.h> but didn't find libc++'s <stddef.h> header. \ | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/cstddef:59:9: error: no member named 'nullptr_t' in the global namespace 59 | using ::nullptr_t; | ~~^ In file included from /tmp/localai-20241217-8250-f4phzg/LocalAI-2.24.2/backend/cpp/llama-avx/llama.cpp/examples/grpc-server/grpc-server.cpp:10: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/iostream:43: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/ios:223: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/__locale:15: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/__memory/shared_ptr.h:24: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/__memory/allocation_guard.h:15: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/__memory/allocator_traits.h:14: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/__memory/construct_at.h:23: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/new:396: /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/cstdlib:90:5: error: <cstdlib> tried including <stdlib.h> but didn't find libc++'s <stdlib.h> header. This usually means that your header search paths are not configured properly. The header search paths should contain the C++ Standard Library headers before any C Standard Library, and you are probably using compiler flags that make that not be the case. 90 | # error <cstdlib> tried including <stdlib.h> but didn't find libc++'s <stdlib.h> header. \ | ^ In file included from /tmp/localai-20241217-8250-f4phzg/LocalAI-2.24.2/backend/cpp/llama-avx/llama.cpp/examples/grpc-server/grpc-server.cpp:10: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/iostream:43: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/ios:223: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/__locale:15: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/__memory/shared_ptr.h:24: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/__memory/allocation_guard.h:15: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/__memory/allocator_traits.h:14: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/__memory/construct_at.h:23: In file included from /Library/Developer/Command

Check failure on line 37 in Formula/l/localai.rb

View workflow job for this annotation

GitHub Actions / macOS 13-x86_64

`brew install --verbose --formula --build-bottle localai` failed on macOS Ventura (13)!

In file included from /tmp/localai-20241218-8186-m8fbiu/LocalAI-2.24.2/sources/go-llama.cpp/llama.cpp/ggml.c:248: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Accelerate.framework/Headers/Accelerate.h:27: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage.h:294: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage_CVUtilities.h:48: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:23: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVImageBuffer.h:250:151: error: expected ',' CV_EXPORT const CFStringRef CV_NONNULL kCVImageBufferLogTransferFunctionKey API_AVAILABLE(macosx(14.2), ios(17.2), tvos(17.2), watchos(10.2), visionos(1.1)); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVImageBuffer.h:252:157: error: expected ',' CV_EXPORT const CFStringRef CV_NONNULL kCVImageBufferLogTransferFunction_AppleLog API_AVAILABLE(macosx(14.2), ios(17.2), tvos(17.2), watchos(10.2), visionos(1.1)); ^ In file included from /tmp/localai-20241218-8186-m8fbiu/LocalAI-2.24.2/sources/go-llama.cpp/llama.cpp/ggml.c:248: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Accelerate.framework/Headers/Accelerate.h:27: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage.h:294: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage_CVUtilities.h:48: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVPixelBuffer.h:238:167: error: expected ',' CV_EXPORT const CFStringRef CV_NONNULL kCVPixelBufferOpenGLESCompatibilityKey API_AVAILABLE(ios(6.0), tvos(9.0)) API_UNAVAILABLE(macosx) API_UNAVAILABLE(macCatalyst) API_UNAVAILABLE(visionos) __WATCHOS_PROHIBITED; // CFBoolean ^ /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/os/availability.h:132:209: note: expanded from macro 'API_UNAVAILABLE' #define API_UNAVAILABLE(...) __API_UNAVAILABLE_GET_MACRO(__VA_ARGS__,__API_UNAVAILABLE8,__API_UNAVAILABLE7,__API_UNAVAILABLE6, __API_UNAVAILABLE5, __API_UNAVAILABLE4,__API_UNAVAILABLE3,__API_UNAVAILABLE2,__API_UNAVAILABLE1, 0)(__VA_ARGS__) ^ In file included from /tmp/localai-20241218-8186-m8fbiu/LocalAI-2.24.2/sources/go-llama.cpp/llama.cpp/ggml.c:248: In file included from /Applications/Xco

Check failure on line 37 in Formula/l/localai.rb

View workflow job for this annotation

GitHub Actions / macOS 14-x86_64

`brew install --verbose --formula --build-bottle localai` failed on macOS Sonoma (14)!

In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__locale:15: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__memory/shared_ptr.h:14: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__compare/compare_three_way.h:13: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__compare/three_way_comparable.h:12: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__compare/common_comparison_category.h:15: /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/cstddef:46:5: error: <cstddef> tried including <stddef.h> but didn't find libc++'s <stddef.h> header. This usually means that your header search paths are not configured properly. The header search paths should contain the C++ Standard Library headers before any C Standard Library, and you are probably using compiler flags that make that not be the case. 46 | # error <cstddef> tried including <stddef.h> but didn't find libc++'s <stddef.h> header. \ | ^ /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/cstddef:59:9: error: no member named 'nullptr_t' in the global namespace 59 | using ::nullptr_t; | ~~^ [ 96%] Linking CXX static library libmyclip.a In file included from /tmp/localai-20241218-8250-ao8t9y/LocalAI-2.24.2/backend/cpp/llama-fallback/llama.cpp/examples/grpc-server/grpc-server.cpp:10: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/iostream:43: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/ios:222: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__locale:15: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__memory/shared_ptr.h:22: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__memory/allocation_guard.h:15: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__memory/allocator_traits.h:14: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__memory/construct_at.h:23: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/new:99: /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/cstdlib:90:5: error: <cstdlib> tried including <stdlib.h> but didn't find libc++'s <stdlib.h> header. This usually means that your header search paths are not configured properly. The header search paths should contain the C++ Standard Library headers before any C Standard Library, and you are probably using compiler flags that make that not be the case. 90 | # error <cstdlib> tried including <stdlib.h> but didn't find libc++'s <stdlib.h> header. \ | ^ In file included from /tmp/localai-20241218-8250-ao8t9y/LocalAI-2.24.2/backend/cpp/llama-fallback/llama.cpp/examples/grpc-server/grpc-server.cpp:10: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/iostream:43: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/ios:222: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__locale:15: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__memory/shared_ptr.h:22: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__memory/allocation_guard.h:15: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__memory/allocator_traits.h:14: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__memory/construct_at
ENV["PYTHON"] = python3

venv = virtualenv_create(libexec, python3)
venv.pip_install(resources, build_isolation: false)
venv = virtualenv_create(buildpath/"venv", python3)
venv.pip_install resources
ENV.prepend_path "PATH", venv.root/"bin"

system "make", "build"
system "make", "build", "VERSION=#{version}"
bin.install "local-ai"
end

test do
http_port = free_port
fork do
mkdir_p "#{testpath}/configuration"
ENV["LOCALAI_ADDRESS"] = "127.0.0.1:#{http_port}"
exec bin/"local-ai"
end
sleep 30

response = shell_output("curl -s -i 127.0.0.1:#{http_port}")
addr = "127.0.0.1:#{free_port}"

spawn bin/"local-ai", "run", "--address", addr
sleep 5

response = shell_output("curl -s -i #{addr}")
assert_match "HTTP/1.1 200 OK", response
end
end
Loading