Main: Load json meta file only if specified

This should be ok, given that there is a version of the chat tmpl
meta data already included with the library.

So only if user wants to change the chat template info wrt a existing
model/template-standard or add a new one, then there is need to
pass a json file with info for that model/standard.
This commit is contained in:
HanishKVC 2024-05-12 14:53:37 +05:30
parent a3285e8e25
commit 4232ec1fb9

View file

@ -143,7 +143,9 @@ int main(int argc, char ** argv) {
atexit([]() { console::cleanup(); });
if (params.chaton) {
chaton_meta_load(params.chaton_meta_json);
if (!params.chaton_meta_json.empty()) {
chaton_meta_load(params.chaton_meta_json);
}
if (!chaton_meta_ok(params.chaton_template_id)) {
exit(1);
}