Skip to content

Commit 9458e08

Browse files
committed
fixed #1892
1 parent 9ea153c commit 9458e08

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

koboldcpp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7939,7 +7939,7 @@ def kcpp_main_process(launch_args, g_memory=None, gui_launcher=False):
79397939

79407940
# The chat completions adapter is a list that needs derivation from chat templates
79417941
# Try to derive chat completions adapter from chat template, now that we have the model loaded
7942-
if not args.nomodel and args.model_param:
7942+
if args.model_param:
79437943
ctbytes = handle.get_chat_template()
79447944
cached_chat_template = ctypes.string_at(ctbytes).decode("UTF-8","ignore")
79457945
if cached_chat_template != "" and (chatcompl_adapter_list is not None and isinstance(chatcompl_adapter_list, list)):

0 commit comments

Comments
 (0)