opnsense-ports/misc/py-llama-cpp-python/files/patch-llama__cpp_llama__cpp.py
Franco Fichtner fde8a0af29 */*: sync with upstream
Taken from: FreeBSD
2024-07-29 22:39:23 +02:00

11 lines
518 B
Python

--- llama_cpp/llama_cpp.py.orig 2024-07-28 03:36:26 UTC
+++ llama_cpp/llama_cpp.py
@@ -28,7 +28,7 @@ def _load_shared_library(lib_base_name: str):
# for llamacpp) and "llama" (default name for this repo)
_lib_paths: List[pathlib.Path] = []
# Determine the file extension based on the platform
- if sys.platform.startswith("linux"):
+ if sys.platform.startswith("linux") or sys.platform.startswith("freebsd"):
_lib_paths += [
_base_path / f"lib{lib_base_name}.so",
]