mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-11 09:34:37 +00:00
minor linting
This commit is contained in:
parent
23ec550835
commit
29afdb7c90
1 changed files with 1 additions and 8 deletions
|
@ -4648,10 +4648,7 @@ def main(launch_args,start_server=True):
|
|||
exitcounter = 999
|
||||
exit_with_error(3,"Could not load text model: " + modelname)
|
||||
|
||||
if (
|
||||
chatcompl_adapter is not None
|
||||
and isinstance(chatcompl_adapter, list)
|
||||
):
|
||||
if (chatcompl_adapter is not None and isinstance(chatcompl_adapter, list)):
|
||||
# The chat completions adapter is a list that needs derivation from chat templates
|
||||
# Try to derive chat completions adapter from chat template, now that we have the model loaded
|
||||
ctbytes = handle.get_chat_template()
|
||||
|
@ -4667,10 +4664,6 @@ def main(launch_args,start_server=True):
|
|||
if chatcompl_adapter is None:
|
||||
print("Chat template heuristics failed to identify chat completions format. Alpaca will be used.")
|
||||
|
||||
if chatcompl_adapter is None and not args.chatcompletionsadapter:
|
||||
print("Note: Alpaca format will be used for OpenAI Compatible API chat completions. Use --chatcompletionsadapter=AutoGuess to use chat template heuristics.")
|
||||
|
||||
|
||||
#handle loading image model
|
||||
if args.sdmodel and args.sdmodel!="":
|
||||
imgmodel = args.sdmodel
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue