OnlyBiggg commited on
Commit
45737f3
·
1 Parent(s): f84eb49
Files changed (2) hide show
  1. app/api/routes.py +1 -1
  2. app/types/Respone.py +1 -1
app/api/routes.py CHANGED
@@ -339,7 +339,7 @@ async def time_trip(request: Request) -> Response:
339
  }
340
  ]
341
  }
342
- return DialogFlowResponseAPI(text=text, parameters=parameters)
343
  except Exception as e:
344
  print(e)
345
  return DialogFlowResponseAPI(text=["Hệ thống xảy ra lỗi. Quý khách vui lòng thử lại sau hoặc liên hệ Trung tâm tổng đài 1900 6067 để được hỗ trợ."])
 
339
  }
340
  ]
341
  }
342
+ return DialogFlowResponseAPI(text=text, payload=payload, parameters=parameters)
343
  except Exception as e:
344
  print(e)
345
  return DialogFlowResponseAPI(text=["Hệ thống xảy ra lỗi. Quý khách vui lòng thử lại sau hoặc liên hệ Trung tâm tổng đài 1900 6067 để được hỗ trợ."])
app/types/Respone.py CHANGED
@@ -6,7 +6,7 @@ class MessageText(BaseModel):
6
  text: List[str]
7
 
8
  class Message(BaseModel):
9
- text: MessageText = None
10
  payload: Optional[Dict[str, Any]] = None # Thêm trường payload tùy chọn
11
 
12
 
 
6
  text: List[str]
7
 
8
  class Message(BaseModel):
9
+ text: Optional[MessageText] = None
10
  payload: Optional[Dict[str, Any]] = None # Thêm trường payload tùy chọn
11
 
12