Method
apply_chat_template
(self, messages, tools=None, tokenize=True, add_generation_prompt=True)
Source from the content-addressed store, hash-verified
| 38 | self.prompts = [list(prompt) for prompt in prompts] |
| 39 | |
| 40 | def apply_chat_template(self, messages, tools=None, tokenize=True, add_generation_prompt=True): |
| 41 | self.rendered.append((list(messages), tools)) |
| 42 | assert self.prompts, "unexpected chat-template render" |
| 43 | return self.prompts.pop(0) |
| 44 | |
| 45 | |
| 46 | class FakeSGLang: |
Callers
nothing calls this directly
Tested by
no test coverage detected