ensured that behavior consistent with log

This commit is contained in:
Roberto Tomás Collins 2024-11-25 09:51:16 -05:00
parent ac5830d729
commit 65bcf2e14f

View file

@ -638,6 +638,10 @@ int main(int argc, char ** argv) {
} }
if (params.prompt.empty()) { if (params.prompt.empty()) {
if (params.in_files.empty()) {
LOG_ERR("Error: No prompt provided and no precomputed matrices (--in-file) to combine.\n");
return 1;
}
LOG_INF("No prompt provided; combining precomputed matrices only.\n"); LOG_INF("No prompt provided; combining precomputed matrices only.\n");
} else { } else {
if (!compute_imatrix(ctx, params)) { if (!compute_imatrix(ctx, params)) {