mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-10 17:14:36 +00:00
handle and fix temp paths to chat completions adapter
This commit is contained in:
parent
5106816eac
commit
d0d1d922de
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue