MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / apply_chat_template

Method apply_chat_template

tests/test_llm_parser.py:669–670  ·  view source on GitHub ↗
(self, messages, tokenize=False, add_generation_prompt=True)

Source from the content-addressed store, hash-verified

667 eos_token_id = 1
668
669 def apply_chat_template(self, messages, tokenize=False, add_generation_prompt=True):
670 return "prompt"
671
672 def __call__(self, prompt_text, return_tensors="pt"):
673 return {"input_ids": FakeTensor([1, 2, 3])}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected