Skip to content

Commit a3e8128

Browse files
authored
cli : load parser definition (ggml-org#19031)
* cli : load parser definition * cont : only unload if a parser is defined
1 parent 51fa458 commit a3e8128

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tools/cli/cli.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ struct cli_context {
8484
// chat template settings
8585
task.params.chat_parser_params = common_chat_parser_params(chat_params);
8686
task.params.chat_parser_params.reasoning_format = COMMON_REASONING_FORMAT_DEEPSEEK;
87+
if (!chat_params.parser.empty()) {
88+
task.params.chat_parser_params.parser.load(chat_params.parser);
89+
}
8790

8891
rd.post_task({std::move(task)});
8992
}

0 commit comments

Comments
 (0)