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:
parent
a3285e8e25
commit
4232ec1fb9
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue