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

Method update_args

subprojects/llama.cpp/tools/server/server-models.cpp:147–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

add_modelMethod · 0.80
loadMethod · 0.80

Calls 4

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

Tested by

no test coverage detected