use PathBuf to check exists()

This commit is contained in:
Thien Tran 2025-05-26 18:52:37 +08:00 committed by Louis
parent 77f6770333
commit d01cbe44ae
No known key found for this signature in database
GPG Key ID: 44FA9F4D33C37DE2

View File

@ -68,7 +68,8 @@ pub async fn load_llama_model(
log::info!("Attempting to launch server at path: {:?}", server_path);
log::info!("Using arguments: {:?}", args);
if !server_path.exists() {
let server_path_buf = PathBuf::from(&server_path);
if !server_path_buf.exists() {
log::error!(
"Server binary not found at expected path: {:?}",
server_path