MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / chunkText

Function chunkText

deployments/desktop/static/desktop.js:4493–4501  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

4491 }
4492
4493 function chunkText(text) {
4494 const content = String(text || "");
4495 if (!content) return [""];
4496 const chunks = [];
4497 for (let index = 0; index < content.length; index += 12) {
4498 chunks.push(content.slice(index, index + 12));
4499 }
4500 return chunks;
4501 }
4502
4503 async function streamAnswerText(target, text, citations) {
4504 target.classList.remove("loading");

Callers 1

streamAnswerTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected