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

Method prev_text_tokens_at

examples/server/server.py:4024–4025  ·  view source on GitHub ↗
(self, pos: int)

Source from the content-addressed store, hash-verified

4022 return self.text_tokens[self.text_token_index_by_pos[pos]]
4023
4024 def prev_text_tokens_at(self, pos: int) -> List[int]:
4025 return self.text_tokens[: self.text_token_index_by_pos[pos]]
4026
4027
4028@dataclass(frozen=True)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected