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

Method accept

llama_cpp/_internals.py:860–861  ·  view source on GitHub ↗
(self, token: int)

Source from the content-addressed store, hash-verified

858 return llama_cpp.llama_sampler_sample(self.sampler, ctx.ctx, idx)
859
860 def accept(self, token: int):
861 llama_cpp.llama_sampler_accept(self.sampler, token)
862
863 def reset(self):
864 llama_cpp.llama_sampler_reset(self.sampler)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected