| 296 | } |
| 297 | |
| 298 | common_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 | |
| 310 | common_presets common_preset_context::load_from_ini(const std::string & path, common_preset & global) const { |
| 311 | common_presets out; |
nothing calls this directly
no test coverage detected