kenken999 commited on
Commit
98de2d0
1 Parent(s): 47a91f2
chat_history.db CHANGED
Binary files a/chat_history.db and b/chat_history.db differ
 
controllers/gpt_enginner20240619115831 ADDED
@@ -0,0 +1 @@
 
 
1
+ Subproject commit 9f5656ae2eea75d965f63b9a4ec79eec4531bed8
mysite/asgimain.py CHANGED
@@ -671,7 +671,7 @@ CHANNEL_ID = os.getenv("ChannelID")
671
  CHANNEL_SECRET = os.getenv("ChannelSecret")
672
  CHANNEL_ACCESS_TOKEN = os.getenv("ChannelAccessToken")
673
  WEBHOOK_URL = os.getenv("WEBHOOK_URL")
674
- WEBHOOK_GAS = os.getenv("WEBHOOKGAS")
675
  import requests
676
  import hmac
677
  import hashlib
 
671
  CHANNEL_SECRET = os.getenv("ChannelSecret")
672
  CHANNEL_ACCESS_TOKEN = os.getenv("ChannelAccessToken")
673
  WEBHOOK_URL = os.getenv("WEBHOOK_URL")
674
+ WEBHOOK_GAS = os.getenv("WEBHOOK_GAS")
675
  import requests
676
  import hmac
677
  import hashlib
mysite/routers/fastapi.py CHANGED
@@ -258,7 +258,7 @@ def setup_webhook_routes(app: FastAPI):
258
  logger.info("Forwarding Body: %s", body.decode("utf-8"))
259
 
260
  #response = requests.post(os.getenv("WEBHOOK_URL"), headers=headers, data=body)
261
- responses = requests.post(os.getenv("WEBHOOKGAS"), headers=headers, data=body)
262
  logger.info("Response Code: %s", response.status_code)
263
  logger.info("Response Content: %s", response.text)
264
  logger.info("Response Headers: %s", response.headers)
 
258
  logger.info("Forwarding Body: %s", body.decode("utf-8"))
259
 
260
  #response = requests.post(os.getenv("WEBHOOK_URL"), headers=headers, data=body)
261
+ responses = requests.post(os.getenv("WEBHOOK_GAS"), headers=headers, data=body)
262
  logger.info("Response Code: %s", response.status_code)
263
  logger.info("Response Content: %s", response.text)
264
  logger.info("Response Headers: %s", response.headers)