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

Method apply

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

Source from the content-addressed store, hash-verified

140
141class TogetherComputerInstruct(PromptStyle):
142 def apply(self, prompt: str, **kwargs: str) -> str:
143 return f'Q: {prompt}\nA:'
144
145 def stop_tokens(self, tokenizer: 'Tokenizer') -> Tuple[List[int], ...]:
146 colon = tokenizer.token_to_id(':')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected