common : --model or -hf is required (#31242)

Assisted-by: Codex
This commit is contained in:
Julien Chaumond authored and GitHub committed 2026-10-27 11:55:48 +01:00
1 parent 7eed6b7685
commit 74a1fd3d03
1 file changed
+1 -1
+1 -1
View File
@@ -924,7 +924,7 @@ static bool common_params_parse_ex(int argc, char ** argv, common_params_context
// TODO @ngxson : maybe show a list of available models in CLI in this case
bool can_skip_model = params.usage || params.completion || !params.server_base.empty();
if (!can_skip_model && params.model.path.empty()) {
throw std::invalid_argument("error: --model is required\n");
throw std::invalid_argument("error: --model or -hf is required\n");
}
}