MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / split_text_chunks

Function split_text_chunks

src/framework/text/chunking.cpp:390–394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388 utf8_codepoint_count(parenthetical->first, "tag-aware leading text chunk tag"));
389 const int64_t body_budget = std::max<int64_t>(1, codepoint_budget - prefix_codepoints - 1);
390 auto chunks = split_tag_aware_body(parenthetical->second, body_budget);
391 for (auto & chunk : chunks) {
392 chunk = parenthetical->first + " " + chunk;
393 }
394 return chunks;
395}
396
397std::vector<std::string> split_text_chunks_japanese(

Callers 7

chunk_text_requestFunction · 0.85
runMethod · 0.85
prepare_generationMethod · 0.85
generateMethod · 0.85
runMethod · 0.85
runMethod · 0.85
runMethod · 0.85

Calls 2

Tested by

no test coverage detected