Skip to content

Commit d0d1d92

Browse files
committed
handle and fix temp paths to chat completions adapter
1 parent 5106816 commit d0d1d92

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

koboldcpp.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4389,6 +4389,8 @@ def main(launch_args,start_server=True):
43894389
filename = args.chatcompletionsadapter
43904390
if not filename.endswith(".json"):
43914391
filename += ".json"
4392+
#strip to just the filename
4393+
filename = os.path.basename(filename)
43924394
premade_adapt_path = os.path.join(adapt_dir,filename)
43934395
if premade_adapt_path and os.path.exists(premade_adapt_path):
43944396
ccadapter_path = os.path.abspath(premade_adapt_path)

0 commit comments

Comments
 (0)