MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / clean_file_name

Function clean_file_name

subprojects/llama.cpp/common/arg.cpp:275–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275static std::string clean_file_name(const std::string & fname) {
276 std::string clean_fname = fname;
277 string_replace_all(clean_fname, "\\", "_");
278 string_replace_all(clean_fname, "/", "_");
279 return clean_fname;
280}
281
282static bool common_params_handle_remote_preset(common_params & params, llama_example ex) {
283 GGML_ASSERT(!params.model.hf_repo.empty());

Callers 2

Calls 1

string_replace_allFunction · 0.70

Tested by

no test coverage detected