From 124e259dc632a08316a1c5bfc0b9081f1bb55404 Mon Sep 17 00:00:00 2001 From: cpumaxx <163466046+cpumaxx@users.noreply.github.com> Date: Tue, 9 Apr 2024 21:03:11 -0700 Subject: [PATCH] Update common.cpp update image flag processing code to work with vector type --- common/common.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/common/common.cpp b/common/common.cpp index f37dc8fb7..5e173a133 100644 --- a/common/common.cpp +++ b/common/common.cpp @@ -768,11 +768,7 @@ bool gpt_params_find_arg(int argc, char ** argv, const std::string & arg, gpt_pa invalid_param = true; return true; } - if (params.image != "") { - params.image += ","; - } - params.image += argv[i]; - params.image = std::regex_replace(params.image,std::regex(" --image "), ","); + params.image.emplace_back(argv[i]); return true; } if (arg == "-i" || arg == "--interactive") {