Spaces:
Running
on
Zero
Running
on
Zero
fda
Browse files- babyagi/prompt.txt +1 -1
- chat_history.db +2 -2
- command/n8n.py +20 -0
- controllers/gpt_enginner20240626075212 +1 -0
- controllers/gpt_enginner20240626075316 +1 -0
- controllers/gpt_enginner20240626075433 +1 -0
- controllers/gpt_enginner20240626075532 +1 -0
- controllers/gpt_enginner20240626075622 +1 -0
- routers/webhook.py +1 -1
babyagi/prompt.txt
CHANGED
@@ -1 +1 @@
|
|
1 |
-
|
|
|
1 |
+
COZEテストの質問 についてチャットボットでよりよく対応するプランを日本語で作成して
|
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:4ec2ed50a2b0aed9113400df28a1b9dd3acbdf9ecfa142d6840711960a405720
|
3 |
+
size 1753088
|
command/n8n.py
CHANGED
@@ -1,5 +1,25 @@
|
|
1 |
import requests
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
def post_data(url, word, thread,headers):
|
4 |
# POSTリクエストのペイロード
|
5 |
payload = {
|
|
|
1 |
import requests
|
2 |
|
3 |
+
def post_data_line(url, body,headers):
|
4 |
+
# POSTリクエストのペイロード
|
5 |
+
payload = body
|
6 |
+
|
7 |
+
# ヘッダーの設定(必要に応じて)
|
8 |
+
#$headers = {
|
9 |
+
# 'Content-Type': 'application/json'
|
10 |
+
#}
|
11 |
+
|
12 |
+
# POSTリクエストの送信
|
13 |
+
response = requests.post(url, json=payload, headers=headers)
|
14 |
+
|
15 |
+
# レスポンスのステータスコードを表示
|
16 |
+
print(f'Status Code: {response.status_code}')
|
17 |
+
|
18 |
+
# レスポンスの内容を表示
|
19 |
+
print(f'Response Content: {response.content.decode()}')
|
20 |
+
|
21 |
+
return response
|
22 |
+
|
23 |
def post_data(url, word, thread,headers):
|
24 |
# POSTリクエストのペイロード
|
25 |
payload = {
|
controllers/gpt_enginner20240626075212
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 39e5ca6da59167913b663d85b9d09467623172b7
|
controllers/gpt_enginner20240626075316
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 51d9e1ff8b1d6da59092fdbdea58a430a11945ee
|
controllers/gpt_enginner20240626075433
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 05417b575cefe4ceebffa1085ffdef09d6266b65
|
controllers/gpt_enginner20240626075532
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 89f632a768cd36bd3c6803ecb206750eddd26029
|
controllers/gpt_enginner20240626075622
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 0c808b300327f7d462dd06b736ab7643040360aa
|
routers/webhook.py
CHANGED
@@ -88,7 +88,7 @@ async def webhook(request: Request):
|
|
88 |
"X-Line-Signature": line_signature,
|
89 |
"Authorization": f"Bearer {os.getenv('ChannelAccessToken')}",
|
90 |
}
|
91 |
-
|
92 |
|
93 |
|
94 |
|
|
|
88 |
"X-Line-Signature": line_signature,
|
89 |
"Authorization": f"Bearer {os.getenv('ChannelAccessToken')}",
|
90 |
}
|
91 |
+
post_data_line("https://kenken999-nodex-n8n.hf.space/webhook-test/d2d0af6e-5c42-45b6-a923-3bd2d8520e3f",text,body,headers)
|
92 |
|
93 |
|
94 |
|