diff --git a/examples/llama_cpp.py b/examples/llama_cpp.py index 72bc443e5..a0261b742 100644 --- a/examples/llama_cpp.py +++ b/examples/llama_cpp.py @@ -52,7 +52,7 @@ def _load_shared_library(lib_base_name: str): for _lib_path in _lib_paths: if _lib_path.exists(): try: - return ctypes.CDLL(str(_lib_path)) + return ctypes.CDLL(str(_lib_path), winmode=0) except Exception as e: raise RuntimeError(f"Failed to load shared library '{_lib_path}': {e}")