kenken999 commited on
Commit
b0ecb95
1 Parent(s): 3f4c733
controllers/gpt_enginner20240619025833/prompt ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 下記のコードをdjangoで作成I'd be happy to assist you! You've brought in some items to sell, and you'd like to inquire about the process. To better understand your items, could you please provide some information about them?
2
+
3
+ Please provide the following details:
4
+
5
+ * ブランド名(Brand name):
6
+ * モデル名(Model name):
7
+ * シリアル番号や製品コード(Serial number or product code):
8
+ * 購入元(Where you purchased it):
9
+ * 購入日時(When you purchased it):
10
+ * 購入金額(How much you paid for it):
11
+ *付属品(Any accessories included):
12
+ * 物品の状態(Condition of the item)- 1から10のスコアで(on a scale of 1-10, 10 being excellent):
13
+ *貴金属品(If it's a precious metal item):
14
+ +금属の種類(What is the metal type):
15
+ +重量(Weight)- キッチン話で計測可能(you can use a kitchen scale for this):
16
+ *宝石やジュエリー(If it's a diamond or gemstone):
17
+ + 認証文書や写真(Do you have a certification document or a photo of it?):
18
+ *印記や彫金(Is there an initial or engraving on the item):
19
+
20
+ Once I have this information, I can assist you further with the appraisal process.下記のコードをdjangoで作成I'd be happy to assist you! You've brought in some items to sell, and you'd like to inquire about the process. To better understand your items, could you please provide some information about them?
21
+
22
+ Please provide the following details:
23
+
24
+ * ブランド名(Brand name):
25
+ * モデル名(Model name):
26
+ * シリアル番号や製品コード(Serial number or product code):
27
+ * 購入元(Where you purchased it):
28
+ * 購入日時(When you purchased it):
29
+ * 購入金額(How much you paid for it):
30
+ *付属品(Any accessories included):
31
+ * 物品の状態(Condition of the item)- 1から10のスコアで(on a scale of 1-10, 10 being excellent):
32
+ *貴金属品(If it's a precious metal item):
33
+ +금属の種類(What is the metal type):
34
+ +重量(Weight)- キッチン話で計測可能(you can use a kitchen scale for this):
35
+ *宝石やジュエリー(If it's a diamond or gemstone):
36
+ + 認証文書や写真(Do you have a certification document or a photo of it?):
37
+ *印記や彫金(Is there an initial or engraving on the item):
38
+
39
+ Once I have this information, I can assist you further with the appraisal process.
controllers/gpt_enginner20240619030042/prompt ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 下記のコードをdjangoで作成I'd be happy to help with the appraisal process. To provide an accurate estimate, I'll need some information about the item you'd like to sell. Please provide the following details:
2
+
3
+ **Brand Name**:
4
+ **Model Name**:
5
+ **Serial Number or Product Code**:
6
+ **Purchase Store**:
7
+ **Purchase Date**:
8
+ **Purchase Price**:
9
+ **Accessories**:
10
+ **Condition** (on a scale of 1-10, where 10 is brand new):
11
+ **Precious Metal Type**:
12
+ **Precious Metal Weight** (using a kitchen scale is okay):
13
+ **Diamond or Gemstone Certification** (please provide a photo):
14
+ **Initials** (yes or no):
15
+
16
+ Once I have this information, I can assist you with the appraisal process.
17
+
18
+ **items table:**
19
+
20
+
21
+
22
+ | id | brand_name | model_name | serial_number | purchase_store | purchase_date | purchase_price |
23
+ |----|------------|------------|--------------|----------------|---------------|----------------|
24
+
25
+
26
+
27
+ **appraisal table:**
28
+
29
+
30
+
31
+ | id | item_id | condition | precious_metal_type | precious_metal_weight | diamond_certification | initials | created_at |
32
+ |----|---------|-----------|-------------------|---------------------|----------------------|-----------|--------------|
33
+
34
+
35
+
36
+ **SQL Query:**
37
+
38
+
39
+
40
+ ```sql
41
+ SELECT * FROM items
42
+ JOIN appraisal ON items.id = appraisal.item_id
43
+ WHERE items.brand_name = 'Brand Name'
44
+ AND items.model_name = 'Model Name'
45
+ AND appraisal.condition = 8;
46
+ ```
47
+
48
+ This query would retrieve the item information and appraisal details for a specific brand and model with a condition rating of 8.
49
+
50
+ Please provide the necessary details, and I'll be happy to help with the appraisal process.下記のコードをdjangoで作成I'd be happy to help with the appraisal process. To provide an accurate estimate, I'll need some information about the item you'd like to sell. Please provide the following details:
51
+
52
+ **Brand Name**:
53
+ **Model Name**:
54
+ **Serial Number or Product Code**:
55
+ **Purchase Store**:
56
+ **Purchase Date**:
57
+ **Purchase Price**:
58
+ **Accessories**:
59
+ **Condition** (on a scale of 1-10, where 10 is brand new):
60
+ **Precious Metal Type**:
61
+ **Precious Metal Weight** (using a kitchen scale is okay):
62
+ **Diamond or Gemstone Certification** (please provide a photo):
63
+ **Initials** (yes or no):
64
+
65
+ Once I have this information, I can assist you with the appraisal process.
66
+
67
+ **items table:**
68
+
69
+
70
+
71
+ | id | brand_name | model_name | serial_number | purchase_store | purchase_date | purchase_price |
72
+ |----|------------|------------|--------------|----------------|---------------|----------------|
73
+
74
+
75
+
76
+ **appraisal table:**
77
+
78
+
79
+
80
+ | id | item_id | condition | precious_metal_type | precious_metal_weight | diamond_certification | initials | created_at |
81
+ |----|---------|-----------|-------------------|---------------------|----------------------|-----------|--------------|
82
+
83
+
84
+
85
+ **SQL Query:**
86
+
87
+
88
+
89
+ ```sql
90
+ SELECT * FROM items
91
+ JOIN appraisal ON items.id = appraisal.item_id
92
+ WHERE items.brand_name = 'Brand Name'
93
+ AND items.model_name = 'Model Name'
94
+ AND appraisal.condition = 8;
95
+ ```
96
+
97
+ This query would retrieve the item information and appraisal details for a specific brand and model with a condition rating of 8.
98
+
99
+ Please provide the necessary details, and I'll be happy to help with the appraisal process.
mysite/routers/fastapi.py CHANGED
@@ -188,8 +188,8 @@ def setup_webhook_routes(app: FastAPI):
188
  chat_with_interpreter(res)
189
 
190
  #
191
- return
192
-
193
  for event in events:
194
  if event["type"] == "message" and event["message"]["type"] == "text":
195
  user_id = event["source"]["userId"]
@@ -202,7 +202,7 @@ def setup_webhook_routes(app: FastAPI):
202
  no_process_file(text, user_id_with_timestamp)
203
  #db登録
204
  test_set_lide(text, user_id_with_timestamp)
205
-
206
  logger.info("Received Headers: %s", received_headers)
207
  logger.info("Received Body: %s", body.decode("utf-8"))
208
 
@@ -226,7 +226,7 @@ def setup_webhook_routes(app: FastAPI):
226
  logger.info("Forwarding Headers: %s", headers)
227
  logger.info("Forwarding Body: %s", body.decode("utf-8"))
228
 
229
- response = requests.post(os.getenv("WEBHOOK_URL"), headers=headers, data=body)
230
  responses = requests.post(os.getenv("WEBHOOKGAS"), headers=headers, data=body)
231
  logger.info("Response Code: %s", response.status_code)
232
  logger.info("Response Content: %s", response.text)
 
188
  chat_with_interpreter(res)
189
 
190
  #
191
+ #return
192
+ """
193
  for event in events:
194
  if event["type"] == "message" and event["message"]["type"] == "text":
195
  user_id = event["source"]["userId"]
 
202
  no_process_file(text, user_id_with_timestamp)
203
  #db登録
204
  test_set_lide(text, user_id_with_timestamp)
205
+ """
206
  logger.info("Received Headers: %s", received_headers)
207
  logger.info("Received Body: %s", body.decode("utf-8"))
208
 
 
226
  logger.info("Forwarding Headers: %s", headers)
227
  logger.info("Forwarding Body: %s", body.decode("utf-8"))
228
 
229
+ #response = requests.post(os.getenv("WEBHOOK_URL"), headers=headers, data=body)
230
  responses = requests.post(os.getenv("WEBHOOKGAS"), headers=headers, data=body)
231
  logger.info("Response Code: %s", response.status_code)
232
  logger.info("Response Content: %s", response.text)