Merge branch 'dev' of https://github.com/MoFox-Studio/MoFox_Bot into dev
This commit is contained in:
@@ -227,7 +227,7 @@ class _ModelSelector:
|
||||
penalty_increment = self.DEFAULT_PENALTY_INCREMENT
|
||||
|
||||
# 对严重错误施加更高的惩罚,以便快速将问题模型移出候选池
|
||||
if isinstance(e, (NetworkConnectionError, ReqAbortException)):
|
||||
if isinstance(e, NetworkConnectionError | ReqAbortException):
|
||||
# 网络连接错误或请求被中断,通常是基础设施问题,应重罚
|
||||
penalty_increment = self.CRITICAL_PENALTY_MULTIPLIER
|
||||
logger.warning(
|
||||
|
||||
Reference in New Issue
Block a user