From d26ab739c4e50f05c6cfc23a792a27e17b55a080 Mon Sep 17 00:00:00 2001 From: woutermans Date: Sat, 8 Jun 2024 06:19:31 +0200 Subject: [PATCH] fix: Windows server_binary path adding unnecassary ".exe" (#2378) --- crates/llama-cpp-server/src/supervisor.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/llama-cpp-server/src/supervisor.rs b/crates/llama-cpp-server/src/supervisor.rs index 9cd8bc4b7f50..b8495641bacf 100644 --- a/crates/llama-cpp-server/src/supervisor.rs +++ b/crates/llama-cpp-server/src/supervisor.rs @@ -36,8 +36,7 @@ impl LlamaCppSupervisor { .expect("Failed to get parent directory") .join(&binary_name) .display() - .to_string() - + std::env::consts::EXE_SUFFIX; + .to_string(); let mut command = tokio::process::Command::new(server_binary); command