|
@@ -416,7 +416,7 @@ class ToTextBotAgent:
|
|
|
self.call_agent.logger.info(f"请求数据:{request_data},url:{url}")
|
|
|
try:
|
|
|
response = requests.post(url=url, json=json.loads(request_data), headers=headers, timeout=10) # 使用占位URL
|
|
|
- self.call_agent.logger.info(f"chat::request:{request_data}, response:{response.text}")
|
|
|
+ self.call_agent.logger.info(f"sessionId={ self.call_agent.session_id}, chat::request:{request_data}, response:{response.text}")
|
|
|
if response.status_code == 200:
|
|
|
response_data = response.json()
|
|
|
if "data" in response_data and response_data["code"]==0:
|