MCPcopy Create free account
hub / github.com/FreedomIntelligence/CMB / get_system_template

Method get_system_template

workers/base.py:277–285  ·  view source on GitHub ↗
(self, t)

Source from the content-addressed store, hash-verified

275
276
277 def get_system_template(self, t):
278 if t.strip() == '':
279 return '{instruction}'
280 else:
281 try:
282 t.format(instruction='')
283 except:
284 raise Exception('there must be a {instruction} placeholder in the system template')
285 return t
286
287 def get_question_template(self, use_cot):
288 if use_cot:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected