|
@@ -446,11 +446,11 @@ class ToTextBotAgent:
|
|
|
message = None
|
|
|
url = f"http://{SERVE_HOST}:40072/botservice"
|
|
|
headers = {"Content-Type": "application/json"}
|
|
|
- payload = json.loads(request_data)
|
|
|
+ # payload = json.loads(request_data)
|
|
|
while try_count > 0:
|
|
|
once_start = time.time()
|
|
|
try:
|
|
|
- response = requests.post(url, data=payload, headers=headers, timeout=3)
|
|
|
+ response = requests.post(url, data=request_data, headers=headers, timeout=3)
|
|
|
if response and response.ok:
|
|
|
response_data = response.json()
|
|
|
if "data" in response_data and response_data["code"] == 0:
|