cli : load parser definition (#19031)

* cli : load parser definition

* cont : only unload if a parser is defined
This commit is contained in:
Aldehir Rojas 2026-01-22 20:31:22 -06:00 committed by GitHub
parent 51fa458a92
commit a3e812811d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -84,6 +84,9 @@ struct cli_context {
// chat template settings
task.params.chat_parser_params = common_chat_parser_params(chat_params);
task.params.chat_parser_params.reasoning_format = COMMON_REASONING_FORMAT_DEEPSEEK;
if (!chat_params.parser.empty()) {
task.params.chat_parser_params.parser.load(chat_params.parser);
}
rd.post_task({std::move(task)});
}