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

Method get_option

subprojects/llama.cpp/common/preset.cpp:150–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150bool common_preset::get_option(const std::string & env, std::string & value) const {
151 for (const auto & [opt, val] : options) {
152 if (opt.env && env == opt.env) {
153 value = val;
154 return true;
155 }
156 }
157 return false;
158}
159
160void common_preset::merge(const common_preset & other) {
161 for (const auto & [opt, val] : other.options) {

Callers 1

load_modelsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected