(label: str)
| 106 | |
| 107 | # Refresh traj log |
| 108 | def refresh(label: str): |
| 109 | global NOW, ID, LOG, traj |
| 110 | LOG.rename(LOG.with_name(f'{NOW}_{label}.json')) |
| 111 | NOW = get_time() |
| 112 | ID = f'{TASK}_{NOW}' |
| 113 | LOG = Path('logs') / f'{MODEL}-{METHOD}' / TASK / f'{NOW}.json' |
| 114 | traj = [] |
| 115 | |
| 116 | class LLMNode(Node): |
| 117 | def __init__(self, name="BaseLLMNode", model_name="text-davinci-003", stop=None, input_type=str, output_type=str): |