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

Method _uses_reasoning_content

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

Source from the content-addressed store, hash-verified

7919 return "<|channel|>" in template or "<|recipient|>" in template
7920
7921 def _uses_reasoning_content(self) -> bool:
7922 template = self._chat_template_text()
7923 return "reasoning_content" in template or "<think>" in template
7924
7925 @staticmethod
7926 def _chat_message(data: Dict[str, Any]) -> ChatCompletionRequestMessage:

Callers 1

Calls 1

_chat_template_textMethod · 0.95

Tested by

no test coverage detected