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

Function _chunk_text

paperflow/providers/llm.py:55–58  ·  view source on GitHub ↗
(text: str, size: int = 24)

Source from the content-addressed store, hash-verified

53
54
55def _chunk_text(text: str, size: int = 24) -> Iterator[str]:
56 content = str(text or "")
57 for index in range(0, len(content), max(1, int(size))):
58 yield content[index : index + size]
59
60
61def _field(value: object, name: str, default: object = None) -> object:

Callers 1

stream_generateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected