()
| 389 | |
| 390 | # Chat |
| 391 | def new_chat(): |
| 392 | if conv_template: |
| 393 | conv = get_conv_template(conv_template) |
| 394 | else: |
| 395 | conv = get_conversation_template(model_path) |
| 396 | if conv_system_msg is not None: |
| 397 | conv.set_system_message(conv_system_msg) |
| 398 | return conv |
| 399 | |
| 400 | def reload_conv(conv): |
| 401 | """ |
no test coverage detected
searching dependent graphs…