perf: 完善openai异常处理

This commit is contained in:
RockChinQ
2024-02-01 18:11:47 +08:00
parent a9d92115f8
commit 7026abe56a
14 changed files with 1195 additions and 9 deletions
+5
View File
@@ -0,0 +1,5 @@
class RequesterError(Exception):
"""Base class for all Requester errors."""
def __init__(self, message: str):
super().__init__("模型请求失败: "+message)