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

Method _chat_template_text

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

Source from the content-addressed store, hash-verified

7910 return tools
7911
7912 def _chat_template_text(self) -> str:
7913 if self.model.chat_formatter is None:
7914 return ""
7915 return cast(str, self.model.chat_formatter._template_text)
7916
7917 def _uses_harmony_channels(self) -> bool:
7918 template = self._chat_template_text()

Callers 3

_instructions_roleMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected