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

Method add_text

subprojects/llama.cpp/tools/mtmd/mtmd.cpp:509–513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

507 }
508
509 void add_text(const std::string & txt, bool parse_special) {
510 LOG_DBG("%s: %s\n", __func__, txt.c_str());
511 auto tokens = mtmd_tokenize_text_internal(vocab, txt, /* add_special */ false, parse_special);
512 add_text(tokens);
513 }
514
515 void add_text(const std::vector<llama_token> & tokens) {
516 if (tokens.empty()) {

Callers

nothing calls this directly

Calls 4

emptyMethod · 0.65
insertMethod · 0.45
endMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected