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

Method update_args

tools/server/server-models.cpp:150–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150void server_model_meta::update_args(common_preset_context & ctx_preset, std::string bin_path) {
151 // update params
152 unset_reserved_args(preset, false);
153 preset.set_option(ctx_preset, "LLAMA_ARG_HOST", CHILD_ADDR);
154 preset.set_option(ctx_preset, "LLAMA_ARG_PORT", std::to_string(port));
155 preset.set_option(ctx_preset, "LLAMA_ARG_ALIAS", name);
156 // TODO: maybe validate preset before rendering ?
157 // render args
158 args = preset.to_args(bin_path);
159}
160
161//
162// server_models

Callers 2

add_modelMethod · 0.80
loadMethod · 0.80

Calls 4

unset_reserved_argsFunction · 0.85
set_optionMethod · 0.80
to_argsMethod · 0.80
to_stringFunction · 0.50

Tested by

no test coverage detected