MCPcopy Create free account
hub / github.com/antirez/llama.cpp-deepseek-v4-flash / get_env

Method get_env

common/arg.cpp:226–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224}
225
226std::vector<std::string> common_arg::get_env() const {
227 std::vector<std::string> result;
228 if (env) {
229 result.push_back(std::string(env));
230 }
231 if (!args_neg.empty() && env) {
232 // for compatibility, we need to add LLAMA_ARG_NO_ variant
233 std::string neg_env = env;
234 string_replace_all(neg_env, "LLAMA_ARG_", "LLAMA_ARG_NO_");
235 result.push_back(neg_env);
236 }
237 return result;
238}
239
240//
241// utils

Callers 3

mainFunction · 0.80
get_map_key_optFunction · 0.80

Calls 4

stringClass · 0.85
string_replace_allFunction · 0.70
push_backMethod · 0.45
emptyMethod · 0.45

Tested by 1

mainFunction · 0.64