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

Method _uses_harmony_channels

examples/server/server.py:7917–7919  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

7915 return cast(str, self.model.chat_formatter._template_text)
7916
7917 def _uses_harmony_channels(self) -> bool:
7918 template = self._chat_template_text()
7919 return "<|channel|>" in template or "<|recipient|>" in template
7920
7921 def _uses_reasoning_content(self) -> bool:
7922 template = self._chat_template_text()

Calls 1

_chat_template_textMethod · 0.95

Tested by

no test coverage detected