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

Method common_preset_context

subprojects/llama.cpp/common/preset.cpp:298–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296}
297
298common_preset_context::common_preset_context(llama_example ex, bool only_remote_allowed)
299 : ctx_params(common_params_parser_init(default_params, ex)) {
300 common_params_add_preset_options(ctx_params.options);
301 key_to_opt = get_map_key_opt(ctx_params);
302
303 // setup allowed keys if only_remote_allowed is true
304 if (only_remote_allowed) {
305 filter_allowed_keys = true;
306 allowed_keys = get_remote_preset_whitelist(key_to_opt);
307 }
308}
309
310common_presets common_preset_context::load_from_ini(const std::string & path, common_preset & global) const {
311 common_presets out;

Callers

nothing calls this directly

Calls 4

get_map_key_optFunction · 0.85

Tested by

no test coverage detected