From 6ded3f04e46da9aedc375f656ebe848dbd1ccf34 Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Sun, 8 Feb 2026 13:05:52 +0800 Subject: [PATCH] patch for output filenames --- koboldcpp.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/koboldcpp.py b/koboldcpp.py index 98355255e..58f36d9e5 100755 --- a/koboldcpp.py +++ b/koboldcpp.py @@ -7612,6 +7612,8 @@ def downloader_internal(input_url, output_filename, capture_output, min_file_siz if download_dir_path: download_dir_path = os.path.abspath(download_dir_path) os.makedirs(download_dir_path, exist_ok=True) + if output_filename != "auto" and download_dir_path and not os.path.isabs(output_filename): + output_filename = os.path.join(download_dir_path, output_filename) if output_filename == "auto": filename = os.path.basename(input_url).split('?')[0].split('#')[0] if download_dir_path: