kenken999 commited on
Commit
d24b139
·
1 Parent(s): 0688705
chat_history.db CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:638551c43d5039696095babbc8b2544751ba2bd737d879063c3ce96125819c11
3
- size 1511424
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b7ca43487ed92535ae74ea10d4206c86fc815c8c47f145623db36e6841bf2cf9
3
+ size 1519616
controllers/gpt_enginner20240625183853 ADDED
@@ -0,0 +1 @@
 
 
1
+ Subproject commit 2f667c2453ee440d585a305276d2abdc5fb1a8f4
mysite/routers/fastapi.py CHANGED
@@ -399,12 +399,12 @@ def setup_webhook_routes(app: FastAPI):
399
  # check signature
400
  line_signature = received_headers.get("x-line-signature")
401
  logger.info("Received Body: %s", "start send messages ")
402
- headers = {
403
- "Content-Type": "application/json",
404
- "X-Line-Signature": line_signature,
405
- "Authorization": f"Bearer {os.getenv('ChannelAccessToken')}",
406
  }
407
- response = requests.post(os.getenv("WEBHOOK_URL"), headers=headers, data=body)
408
  if not line_signature:
409
  raise HTTPException(status_code=400, detail="X-Line-Signature header is missing.")
410
 
 
399
  # check signature
400
  line_signature = received_headers.get("x-line-signature")
401
  logger.info("Received Body: %s", "start send messages ")
402
+ #headers = {
403
+ # "Content-Type": "application/json",
404
+ # "X-Line-Signature": line_signature,
405
+ # "Authorization": f"Bearer {os.getenv('ChannelAccessToken')}",
406
  }
407
+ #r#esponse = requests.post(os.getenv("WEBHOOK_URL"), headers=headers, data=body)
408
  if not line_signature:
409
  raise HTTPException(status_code=400, detail="X-Line-Signature header is missing.")
410