Skip to content

Commit 14d78cd

Browse files
weimchraychen911
authored andcommitted
Bugfix: 修复模型调用失败未显示异常信息的问题
- 在模型支持重试的特性支持里,把这个信息打印给移除了,现在修复这个问题
1 parent bbd07eb commit 14d78cd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

trpc_agent_sdk/models/_retry.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ def _compute_exponential_backoff(
143143

144144

145145
def _build_error_response(ex: Exception, error_code: str) -> LlmResponse:
146+
logger.error("Model call failed: %s", ex, exc_info=True)
146147
return LlmResponse(
147148
content=None,
148149
error_code=error_code,

0 commit comments

Comments
 (0)