Connection
Base URL, credentials and a reachable server.
PeriodVireo supports review of exact repetition units, distinguishing a complete text power from a prefix followed by an unfinished copy.
Base URL, credentials and a reachable server.
A model available through the configured endpoint.
Context limits and tool support are determined by the model and server.
def primitive_period(text):
if type(text) is not str or len(text) > 256:
raise ValueError("period.input")
if not text:
return ""
for width in range(1, len(text)+1):
if len(text) % width == 0:
root = text[:width]
if root * (len(text)//width) == text:
return root