fix --skip-chat-parsing and --no-prefill-assistant consume the next argument (#2129)
Co-authored-by: firecoperana <firecoperana>
This commit is contained in:
parent
f616fff7d9
commit
3e76852b04
|
|
@ -2721,12 +2721,10 @@ bool gpt_params_find_arg(int argc, char ** argv, const std::string & arg, gpt_pa
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (arg == "--skip-chat-parsing") {
|
if (arg == "--skip-chat-parsing") {
|
||||||
CHECK_ARG
|
|
||||||
params.force_pure_content_parser = true;
|
params.force_pure_content_parser = true;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (arg == "--no-prefill-assistant") {
|
if (arg == "--no-prefill-assistant") {
|
||||||
CHECK_ARG
|
|
||||||
params.prefill_assistant = false;
|
params.prefill_assistant = false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue