diff --git a/gpttype_adapter.cpp b/gpttype_adapter.cpp index a93b1eb63..1f00dc0e7 100644 --- a/gpttype_adapter.cpp +++ b/gpttype_adapter.cpp @@ -5334,8 +5334,10 @@ static void PrepareMediaEmbds(const int nctx, const std::vector & media_int printf("\nError: MTMD media %d failed to load!",i); continue; } + const auto * marker = mtmd_default_marker(); mtmd_input_text inp_txt = { - mtmd_default_marker(), + marker, + strlen(marker), /* add_special */ false, /* parse_special */ true, };