From 74a1fd3d039b5be814d54ee21d419cbee4cb00b8 Mon Sep 17 00:00:00 2001 From: Julien Chaumond Date: Tue, 27 Oct 2026 11:55:48 +0100 Subject: [PATCH] common : --model or -hf is required (#31242) Assisted-by: Codex --- common/arg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/arg.cpp b/common/arg.cpp index 9706b3ac5..eec92f5af 100644 --- a/common/arg.cpp +++ b/common/arg.cpp @@ -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"); } }