Skip to content

Commit 29afdb7

Browse files
committed
minor linting
1 parent 23ec550 commit 29afdb7

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

koboldcpp.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4648,10 +4648,7 @@ def main(launch_args,start_server=True):
46484648
exitcounter = 999
46494649
exit_with_error(3,"Could not load text model: " + modelname)
46504650

4651-
if (
4652-
chatcompl_adapter is not None
4653-
and isinstance(chatcompl_adapter, list)
4654-
):
4651+
if (chatcompl_adapter is not None and isinstance(chatcompl_adapter, list)):
46554652
# The chat completions adapter is a list that needs derivation from chat templates
46564653
# Try to derive chat completions adapter from chat template, now that we have the model loaded
46574654
ctbytes = handle.get_chat_template()
@@ -4667,10 +4664,6 @@ def main(launch_args,start_server=True):
46674664
if chatcompl_adapter is None:
46684665
print("Chat template heuristics failed to identify chat completions format. Alpaca will be used.")
46694666

4670-
if chatcompl_adapter is None and not args.chatcompletionsadapter:
4671-
print("Note: Alpaca format will be used for OpenAI Compatible API chat completions. Use --chatcompletionsadapter=AutoGuess to use chat template heuristics.")
4672-
4673-
46744667
#handle loading image model
46754668
if args.sdmodel and args.sdmodel!="":
46764669
imgmodel = args.sdmodel

0 commit comments

Comments
 (0)