MCPcopy Create free account
hub / github.com/Pints-AI/1.5-Pints / apply

Method apply

lit_gpt/prompts.py:128–129  ·  view source on GitHub ↗
(self, prompt: str, **kwargs: str)

Source from the content-addressed store, hash-verified

126
127class TogetherComputerChat(PromptStyle):
128 def apply(self, prompt: str, **kwargs: str) -> str:
129 return f'<human>: {prompt}\n<bot>:'
130
131 def stop_tokens(self, tokenizer: 'Tokenizer') -> Tuple[List[int], ...]:
132 lt, gt = tokenizer.token_to_id('<'), tokenizer.token_to_id('>:')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected