Update server-models.cpp

This commit is contained in:
SDiHALF 2026-01-29 01:49:27 +05:30 committed by GitHub
parent f6b533d898
commit b44aba5778
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -767,7 +767,7 @@ static bool router_validate_model(const std::string & name, server_models & mode
} }
auto meta = models.get_meta(name); auto meta = models.get_meta(name);
if (!meta.has_value()) { if (!meta.has_value()) {
res_err(res, format_error_response("model not found", ERROR_TYPE_INVALID_REQUEST)); res_err(res, format_error_response(string_format("model '%s' not found", name.c_str()), ERROR_TYPE_INVALID_REQUEST));
return false; return false;
} }
if (models_autoload) { if (models_autoload) {