kenken999 commited on
Commit
4f694e2
1 Parent(s): 60aa32a
Files changed (1) hide show
  1. mysite/routers/fastapi.py +3 -3
mysite/routers/fastapi.py CHANGED
@@ -75,7 +75,7 @@ def setup_webhook_routes(app: FastAPI):
75
  body = await request.body()
76
  received_headers = dict(request.headers)
77
  body_str = body.decode("utf-8")
78
- logger.info("Received Body: %s", body_str)
79
  body_json = json.loads(body_str)
80
  events = body_json.get("events", [])
81
 
@@ -87,9 +87,9 @@ def setup_webhook_routes(app: FastAPI):
87
  if event["type"] == "message" and event["message"]["type"] == "text":
88
  user_id = event["source"]["userId"]
89
  text = event["message"]["text"]
90
- logger.info("------------------------------------------")
91
  first_line = text.split('\n')[0]
92
- logger.info(f"User ID: {user_id}, Text: {text}")
93
  promps,prompt_res = prompt_genalate(text)
94
  #test_set_lide(text,"a1")
95
  #no_process_file(text, "ai")
 
75
  body = await request.body()
76
  received_headers = dict(request.headers)
77
  body_str = body.decode("utf-8")
78
+ #logger.info("Received Body: %s", body_str)
79
  body_json = json.loads(body_str)
80
  events = body_json.get("events", [])
81
 
 
87
  if event["type"] == "message" and event["message"]["type"] == "text":
88
  user_id = event["source"]["userId"]
89
  text = event["message"]["text"]
90
+ #logger.info("------------------------------------------")
91
  first_line = text.split('\n')[0]
92
+ #logger.info(f"User ID: {user_id}, Text: {text}")
93
  promps,prompt_res = prompt_genalate(text)
94
  #test_set_lide(text,"a1")
95
  #no_process_file(text, "ai")