(self, t)
| 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: |
nothing calls this directly
no outgoing calls
no test coverage detected