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

Method apply

lit_gpt/prompts.py:58–67  ·  view source on GitHub ↗
(self, prompt: str, system='', **kwargs: str)

Source from the content-addressed store, hash-verified

56 }
57
58 def apply(self, prompt: str, system='', **kwargs: str) -> str:
59 result = ''
60
61 if system:
62 result += f'{self.special_tokens["start_system"]}\n{system}{self.special_tokens["end"]}\n'
63
64 result += f'{self.special_tokens["start_user"]}\n{prompt}{self.special_tokens["end"]}\n'
65 result += f'{self.special_tokens["start_assistant"]}\n'
66
67 return result
68
69
70class Alpaca(PromptStyle):

Callers 2

test_chatmlFunction · 0.95

Calls

no outgoing calls

Tested by 2

test_chatmlFunction · 0.76