合并分支

* Merge remote-tracking branch 'origin/main' into feature/cluster-gemini
* FIX 修复webhook导致modal状态无法正常透传问题
* Merge branch 'main' into cluster-gemini
* PERF 尝试修复gemini推理超出思考token上限的问题

---------

Merge request URL: https://g-ldyi2063.coding.net/p/dev/d/modalDeploy/git/merge/4812
Co-authored-by: 康宇佳
This commit is contained in:
康宇佳 2025-06-17 14:54:31 +08:00 committed by Coding
parent a0946960f5
commit ab492d1ec4
1 changed files with 4 additions and 0 deletions

View File

@ -84,6 +84,7 @@ class SentryUtils:
@functools.wraps(func)
async def async_wrapper(*args, **kwargs):
excep = None
try:
result = await func(*args, **kwargs)
status = TaskStatus.success
@ -95,6 +96,7 @@ class SentryUtils:
code = ErrorCode.BUSINESS_ERROR.value
except Exception as e:
logger.exception(e)
excep = e
result = None
status = TaskStatus.failed
error = e.message if hasattr(e, 'message') else str(e)
@ -116,6 +118,8 @@ class SentryUtils:
error=error, code=code,
results=results,
))
if excep:
raise Exception(excep)
return result
return async_wrapper