Spaces:
Running
on
Zero
Running
on
Zero
tet
Browse files- chat_history.db +0 -0
- controllers/gpt_enginner20240619115831 +1 -0
- mysite/asgimain.py +1 -1
- mysite/routers/fastapi.py +1 -1
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("
|
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("
|
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)
|