mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-14 02:49:41 +00:00
autoguess adapter make case insensitive
This commit is contained in:
parent
487d509b44
commit
89266ac6b8
1 changed files with 2 additions and 0 deletions
|
@ -6735,6 +6735,8 @@ def kcpp_main_process(launch_args, g_memory=None, gui_launcher=False):
|
||||||
ccadapter_path = os.path.abspath(args.chatcompletionsadapter)
|
ccadapter_path = os.path.abspath(args.chatcompletionsadapter)
|
||||||
elif isinstance(args.chatcompletionsadapter, str) and adapt_dir:
|
elif isinstance(args.chatcompletionsadapter, str) and adapt_dir:
|
||||||
filename = args.chatcompletionsadapter
|
filename = args.chatcompletionsadapter
|
||||||
|
if filename.lower().strip()=="autoguess":
|
||||||
|
filename = "AutoGuess"
|
||||||
if not filename.endswith(".json"):
|
if not filename.endswith(".json"):
|
||||||
filename += ".json"
|
filename += ".json"
|
||||||
#strip to just the filename
|
#strip to just the filename
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue