尝试使用自然语言调度各个插件

This commit is contained in:
qingxu fu
2023-08-29 23:25:06 +08:00
parent 09d38e4abf
commit adf93195e8
5 changed files with 220 additions and 162 deletions

View File

@@ -90,7 +90,7 @@ class GptJsonIO():
try:
logging.info(f'Repairing json{response}')
repair_prompt = self.generate_repair_prompt(broken_json = response, error=repr(e))
result = self.generate_output(gpt_gen_fn(repair_prompt, self.generate_format_instructions()))
result = self.generate_output(gpt_gen_fn(repair_prompt, self.format_instructions))
logging.info('Repaire json success.')
except Exception as e:
# 没辙了,放弃治疗