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

Method _instructions_role

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

Source from the content-addressed store, hash-verified

7927 return ChatCompletionRequestMessage.model_validate(data)
7928
7929 def _instructions_role(self) -> Literal["developer", "system"]:
7930 return "developer" if "developer" in self._chat_template_text() else "system"
7931
7932 @staticmethod
7933 def _response_reasoning_effort(

Callers 1

Calls 1

_chat_template_textMethod · 0.95

Tested by

no test coverage detected