fix minor bugs

这个提交包含在:
qingxu fu
2023-09-03 16:20:05 +08:00
父节点 79080290c6
当前提交 843113ba0f
共有 4 个文件被更改,包括 17 次插入13 次删除

查看文件

@@ -43,6 +43,7 @@ PYDANTIC_FORMAT_INSTRUCTIONS_SIMPLE = """The output should be formatted as a JSO
{schema}
```"""
class JsonStringError(Exception): ...
class GptJsonIO():
@@ -105,6 +106,6 @@ class GptJsonIO():
except Exception as e:
# 没辙了,放弃治疗
logging.info('Repaire json fail.')
raise RuntimeError('Cannot repair json.', str(e))
raise JsonStringError('Cannot repair json.', str(e))
return result