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

Method get_meta

tools/server/server-models.cpp:402–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

400}
401
402std::optional<server_model_meta> server_models::get_meta(const std::string & name) {
403 std::lock_guard<std::mutex> lk(mutex);
404 auto it = mapping.find(name);
405 if (it != mapping.end()) {
406 return it->second.meta;
407 }
408 for (const auto & [key, inst] : mapping) {
409 if (inst.meta.aliases.count(name)) {
410 return inst.meta;
411 }
412 }
413 return std::nullopt;
414}
415
416static int get_free_port() {
417#ifdef _WIN32

Callers 5

format_chatMethod · 0.45
mainFunction · 0.45
router_validate_modelFunction · 0.45
init_routesMethod · 0.45
update_metaMethod · 0.45

Calls 3

findMethod · 0.80
endMethod · 0.80
countMethod · 0.80

Tested by

no test coverage detected