MCPcopy Create free account
hub / github.com/abetlen/llama-cpp-python / __init__

Method __init__

examples/low_level_api/util.py:14–16  ·  view source on GitHub ↗
(self, pattern)

Source from the content-addressed store, hash-verified

12# Actively searches and prevents a pattern from being returned
13class IterSearch:
14 def __init__(self, pattern):
15 self.pattern = list(pattern)
16 self.buffer = []
17
18 def __call__(self, char):
19 self.buffer += [char]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected