Spaces:
Running
on
Zero
Running
on
Zero
dfa
Browse files- apprasial/__init__.py +0 -0
- apprasial/admin.py +3 -0
- apprasial/apps.py +6 -0
- apprasial/migrations/__init__.py +0 -0
- apprasial/models.py +3 -0
- apprasial/tests.py +3 -0
- apprasial/views.py +3 -0
- babyagi/prompt.txt +1 -6
- chat_history.db +2 -2
- controllers/gpt_enginner20240626105232 +1 -0
- controllers/gpt_enginner20240626105636 +1 -0
- routers/webhook.py +2 -2
- workspace/project/main.py +2 -0
apprasial/__init__.py
ADDED
File without changes
|
apprasial/admin.py
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
from django.contrib import admin
|
2 |
+
|
3 |
+
# Register your models here.
|
apprasial/apps.py
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from django.apps import AppConfig
|
2 |
+
|
3 |
+
|
4 |
+
class ApprasialConfig(AppConfig):
|
5 |
+
default_auto_field = 'django.db.models.BigAutoField'
|
6 |
+
name = 'apprasial'
|
apprasial/migrations/__init__.py
ADDED
File without changes
|
apprasial/models.py
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
from django.db import models
|
2 |
+
|
3 |
+
# Create your models here.
|
apprasial/tests.py
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
from django.test import TestCase
|
2 |
+
|
3 |
+
# Create your tests here.
|
apprasial/views.py
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
from django.shortcuts import render
|
2 |
+
|
3 |
+
# Create your views here.
|
babyagi/prompt.txt
CHANGED
@@ -1,6 +1 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
ムーブメントとガラスの重さを引いて、その日の金の価格で決まる感じでしょうか?
|
4 |
-
|
5 |
-
近日中にお伺いしようと思っていますので、来店予約見てみますね。
|
6 |
-
よろしくお願いいたします。の質問 についてチャットボットでよりよく対応するプランを日本語で作成して
|
|
|
1 |
+
【リッチメニュー】本日の金価格の質問 についてチャットボットでよりよく対応するプランを日本語で作成して
|
|
|
|
|
|
|
|
|
|
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:053e388922279cf2da0c159595f0d1cbf93b1084e3ad7759bbd3623a2f29d6ff
|
3 |
+
size 2052096
|
controllers/gpt_enginner20240626105232
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 1a465f0fa3f63e943ae62f84c443a7c2beeb02c2
|
controllers/gpt_enginner20240626105636
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 28083b18ba73556bdde9d635f79e49b203080e74
|
routers/webhook.py
CHANGED
@@ -66,7 +66,7 @@ async def webhook(request: Request):
|
|
66 |
message_id = message.get('id')
|
67 |
message_text = message.get('text')
|
68 |
quote_token = message.get('quoteToken')
|
69 |
-
|
70 |
# ソース情報を取得
|
71 |
source = event.get('source', {})
|
72 |
source_type = source.get('type')
|
@@ -98,7 +98,7 @@ async def webhook(request: Request):
|
|
98 |
|
99 |
|
100 |
subtitle = f"""
|
101 |
-
<b>User ID:</b> {user_id}<br>
|
102 |
<b>Text:</b> {text}<br>
|
103 |
<b>Event Type:</b> {event_type}<br>
|
104 |
<b>Webhook Event ID:</b> {webhook_event_id}<br>
|
|
|
66 |
message_id = message.get('id')
|
67 |
message_text = message.get('text')
|
68 |
quote_token = message.get('quoteToken')
|
69 |
+
chat_id = event.get('source', {}).get('chatId')
|
70 |
# ソース情報を取得
|
71 |
source = event.get('source', {})
|
72 |
source_type = source.get('type')
|
|
|
98 |
|
99 |
|
100 |
subtitle = f"""
|
101 |
+
<b>User ID:</b> {chat_id}--{user_id}<br>
|
102 |
<b>Text:</b> {text}<br>
|
103 |
<b>Event Type:</b> {event_type}<br>
|
104 |
<b>Webhook Event ID:</b> {webhook_event_id}<br>
|
workspace/project/main.py
CHANGED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
#!/usr/bin/env 3
|
2 |
+
print('Hello, World!')
|