Spaces:
Running
on
Zero
Running
on
Zero
dfa
Browse files- chat_history.db +2 -2
- controllers/gpt_enginner20240625183853 +1 -0
- mysite/routers/fastapi.py +5 -5
chat_history.db
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
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 |
-
|
404 |
-
|
405 |
-
|
406 |
}
|
407 |
-
|
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 |
|