|
@@ -430,6 +430,7 @@ class ToTextBotAgent:
|
|
# 错误处理
|
|
# 错误处理
|
|
self.call_agent.logger.info(f"请求失败,状态码: {response.status_code}, 响应内容: {response.text}")
|
|
self.call_agent.logger.info(f"请求失败,状态码: {response.status_code}, 响应内容: {response.text}")
|
|
except requests.RequestException as e:
|
|
except requests.RequestException as e:
|
|
|
|
+ traceback.print_exc()
|
|
self.call_agent.logger.info(f"请求发生异常: {e}")
|
|
self.call_agent.logger.info(f"请求发生异常: {e}")
|
|
finally:
|
|
finally:
|
|
latency = (time.time() - start_time)
|
|
latency = (time.time() - start_time)
|