From d0d1d922de240feb2b2e2a3a9a6030aa9f0b396f Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Thu, 5 Dec 2024 17:22:35 +0800 Subject: [PATCH] handle and fix temp paths to chat completions adapter --- koboldcpp.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/koboldcpp.py b/koboldcpp.py index 02dc45140..d9cfffe17 100644 --- a/koboldcpp.py +++ b/koboldcpp.py @@ -4389,6 +4389,8 @@ def main(launch_args,start_server=True): filename = args.chatcompletionsadapter if not filename.endswith(".json"): filename += ".json" + #strip to just the filename + filename = os.path.basename(filename) premade_adapt_path = os.path.join(adapt_dir,filename) if premade_adapt_path and os.path.exists(premade_adapt_path): ccadapter_path = os.path.abspath(premade_adapt_path)