MCPcopy Create free account
hub / github.com/FastFlowLM/FastFlowLM / get_model_path

Method get_model_path

src/include/model_list.hpp:216–222  ·  view source on GitHub ↗

\brief get the model path \param tag the tag of the model \return the model path, string

Source from the content-addressed store, hash-verified

214 /// \param tag the tag of the model
215 /// \return the model path, string
216 std::string get_model_path(const std::string& tag){
217 std::string new_tag = this->rectify_model_tag(tag);
218 auto [new_tag_unused, model_info] = this->get_model_info(new_tag);
219 std::string model_name = model_info["name"];
220 std::filesystem::path full_path = std::filesystem::path(this->model_root_path) / model_name;
221 return full_path.string();
222 }
223
224 bool is_model_supported(const std::string& tag) {
225 return all_tags.find(tag) != all_tags.end();

Callers 15

RunnerMethod · 0.80
cmd_loadMethod · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 3

rectify_model_tagMethod · 0.95
get_model_infoMethod · 0.95
stringMethod · 0.45

Tested by 15

mainFunction · 0.64
mainFunction · 0.64
mainFunction · 0.64
mainFunction · 0.64
mainFunction · 0.64
mainFunction · 0.64
mainFunction · 0.64
mainFunction · 0.64
mainFunction · 0.64
mainFunction · 0.64
mainFunction · 0.64
mainFunction · 0.64