任务:更新代码结构,以提高可读性和可维护性

This commit is contained in:
2026-02-27 13:05:20 +08:00
parent fed16f04e1
commit 371e31b00c
6 changed files with 476 additions and 6 deletions

View File

@@ -405,6 +405,7 @@ async def process_single(content : str):
timeout=30
)
except Exception as e:
print(f"API调用失败{str(e)}")
raise RuntimeError(f"API调用失败{str(e)}") from e
# 4. 提取并清洗JSON