ManTea commited on
Commit
a6f54ef
·
1 Parent(s): 93318ef

fix connect mongodb

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -95,7 +95,7 @@ async def chat_endpoint(request: ChatRequest):
95
  start_time = time.time()
96
  try:
97
  # Gọi hàm chat với thông tin được cung cấp
98
- response = await asyncio.to_thread(chatbot.chat, request.query, request.user_id)
99
  process_time = time.time() - start_time
100
  return ChatResponse(
101
  response=response,
 
95
  start_time = time.time()
96
  try:
97
  # Gọi hàm chat với thông tin được cung cấp
98
+ response = await asyncio.to_thread(chatbot.chat, request.query, int(request.user_id))
99
  process_time = time.time() - start_time
100
  return ChatResponse(
101
  response=response,