Spaces:
Running
on
Zero
Running
on
Zero
fd
Browse files- controllers/gpt_enginner20240619090851 +1 -0
- controllers/gpt_enginner20240619091638 +1 -0
- controllers/gpt_enginner20240619091758 +1 -0
- controllers/gpt_enginner20240619092048/.gpteng/memory/logs/all_output.txt +274 -0
- controllers/gpt_enginner20240619092048/prompt +99 -0
- controllers/gpt_enginner20240619092220 +1 -0
- controllers/gpt_enginner20240619092517 +1 -0
- mysite/routers/fastapi.py +5 -1
controllers/gpt_enginner20240619090851
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 42a7cd2f4a245f4279c0e45fa0190cba90870373
|
controllers/gpt_enginner20240619091638
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit c00848a78512e0b7a533d2dc49dce546812a3567
|
controllers/gpt_enginner20240619091758
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 290d5bf3e95f664238b583744c44beba4fc48219
|
controllers/gpt_enginner20240619092048/.gpteng/memory/logs/all_output.txt
ADDED
@@ -0,0 +1,274 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
2024-06-19T09:21:02.084285
|
3 |
+
================================ System Message ================================
|
4 |
+
|
5 |
+
You will get instructions for code to write.
|
6 |
+
You will write a very long answer. Make sure that every detail of the architecture is, in the end, implemented as code.
|
7 |
+
Think step by step and reason yourself to the correct decisions to make sure we get it right.
|
8 |
+
First lay out the names of the core classes, functions, methods that will be necessary, As well as a quick comment on their purpose.
|
9 |
+
|
10 |
+
You will output the content of each file necessary to achieve the goal, including ALL code.
|
11 |
+
Represent files like so:
|
12 |
+
|
13 |
+
FILENAME
|
14 |
+
```
|
15 |
+
CODE
|
16 |
+
```
|
17 |
+
|
18 |
+
The following tokens must be replaced like so:
|
19 |
+
FILENAME is the lowercase combined path and file name including the file extension
|
20 |
+
CODE is the code in the file
|
21 |
+
|
22 |
+
Example representation of a file:
|
23 |
+
|
24 |
+
src/hello_world.py
|
25 |
+
```
|
26 |
+
print("Hello World")
|
27 |
+
```
|
28 |
+
|
29 |
+
Do not comment on what every file does. Please note that the code should be fully functional. No placeholders.
|
30 |
+
|
31 |
+
|
32 |
+
You will start with the "entrypoint" file, then go to the ones that are imported by that file, and so on.
|
33 |
+
Please note that the code should be fully functional. No placeholders.
|
34 |
+
|
35 |
+
Follow a language and framework appropriate best practice file naming convention.
|
36 |
+
Make sure that files contain all imports, types etc. The code should be fully functional. Make sure that code in different files are compatible with each other.
|
37 |
+
Ensure to implement all code, if you are unsure, write a plausible implementation.
|
38 |
+
Include module dependency or package manager dependency definition file.
|
39 |
+
Before you finish, double check that all parts of the architecture is present in the files.
|
40 |
+
|
41 |
+
When you are done, write finish with "this concludes a fully working implementation".
|
42 |
+
|
43 |
+
Useful to know:
|
44 |
+
Almost always put different classes in different files.
|
45 |
+
Always use the programming language the user asks for.
|
46 |
+
For Python, you always create an appropriate requirements.txt file.
|
47 |
+
For NodeJS, you always create an appropriate package.json file.
|
48 |
+
Always add a comment briefly describing the purpose of the function definition.
|
49 |
+
Add comments explaining very complex bits of logic.
|
50 |
+
Always follow the best practices for the requested languages for folder/file structure and how to package the project.
|
51 |
+
|
52 |
+
|
53 |
+
Python toolbelt preferences:
|
54 |
+
- pytest
|
55 |
+
- dataclasses
|
56 |
+
|
57 |
+
|
58 |
+
================================ Human Message =================================
|
59 |
+
|
60 |
+
Request: 下記のコードをdjangoで作成調査のため、以下の情報を求めております。
|
61 |
+
|
62 |
+
1. ブランド名:
|
63 |
+
2. モデル名:
|
64 |
+
3. 型番や品番:
|
65 |
+
4. 購入店:
|
66 |
+
5. 購入時期:
|
67 |
+
6. 購入金額:
|
68 |
+
7. 付属品:
|
69 |
+
8. コンディション:(10点階梯)
|
70 |
+
9. 貴金属品位:
|
71 |
+
10. 貴金属重量:(甚至是一個估算)
|
72 |
+
11. ダイヤや宝石の鑑定書:(有的话請提供)
|
73 |
+
12. イニシャル:(如果有)
|
74 |
+
|
75 |
+
なるべく多くの情報を提供してください。私は、提供された情報を元に、 нашей データベースでアイテムを検索します。
|
76 |
+
|
77 |
+
**データベーステーブル作成**
|
78 |
+
|
79 |
+
、査定情報を格納するために、以下のテーブルを作成します。
|
80 |
+
|
81 |
+
**items**
|
82 |
+
|
83 |
+
| カラム名 | データ型 |
|
84 |
+
| --- | --- |
|
85 |
+
| id | int |
|
86 |
+
| brand_name | varchar(255) |
|
87 |
+
| model_name | varchar(255) |
|
88 |
+
| product_code | varchar(255) |
|
89 |
+
| purchase_store | varchar(255) |
|
90 |
+
| purchase_date | date |
|
91 |
+
| purchase_price | decimal(10, 2) |
|
92 |
+
| accessories | text |
|
93 |
+
| condition | tinyint |
|
94 |
+
| precious_metal_type | varchar(255) |
|
95 |
+
| precious_metal_weight | decimal(10, 2) |
|
96 |
+
| diamond_gemstone_appraisal | text |
|
97 |
+
| initials | varchar(255) |
|
98 |
+
|
99 |
+
**appraisals**
|
100 |
+
|
101 |
+
| カラム名 | データ型 |
|
102 |
+
| --- | --- |
|
103 |
+
| id | int |
|
104 |
+
| item_id | int |
|
105 |
+
| appraisal_date | date |
|
106 |
+
| appraisal_value | decimal(10, 2) |
|
107 |
+
| remarks | text |
|
108 |
+
|
109 |
+
以上のように、査定情報を提供し、我々は、アイテムの査定を行います。下記のコードをdjangoで作成調査のため、以下の情報を求めております。
|
110 |
+
|
111 |
+
1. ブランド名:
|
112 |
+
2. モデル名:
|
113 |
+
3. 型番や品番:
|
114 |
+
4. 購入店:
|
115 |
+
5. 購入時期:
|
116 |
+
6. 購入金額:
|
117 |
+
7. 付属品:
|
118 |
+
8. コンディション:(10点階梯)
|
119 |
+
9. 貴金属品位:
|
120 |
+
10. 貴金属重量:(甚至是一個估算)
|
121 |
+
11. ダイヤや宝石の鑑定書:(有的话請提供)
|
122 |
+
12. イニシャル:(如果有)
|
123 |
+
|
124 |
+
なるべく多くの情報を提供してください。私は、提供された情報を元に、 нашей データベースでアイテムを検索します。
|
125 |
+
|
126 |
+
**データベーステーブル作成**
|
127 |
+
|
128 |
+
、査定情報を格納するために、以下のテーブルを作成します。
|
129 |
+
|
130 |
+
**items**
|
131 |
+
|
132 |
+
| カラム名 | データ型 |
|
133 |
+
| --- | --- |
|
134 |
+
| id | int |
|
135 |
+
| brand_name | varchar(255) |
|
136 |
+
| model_name | varchar(255) |
|
137 |
+
| product_code | varchar(255) |
|
138 |
+
| purchase_store | varchar(255) |
|
139 |
+
| purchase_date | date |
|
140 |
+
| purchase_price | decimal(10, 2) |
|
141 |
+
| accessories | text |
|
142 |
+
| condition | tinyint |
|
143 |
+
| precious_metal_type | varchar(255) |
|
144 |
+
| precious_metal_weight | decimal(10, 2) |
|
145 |
+
| diamond_gemstone_appraisal | text |
|
146 |
+
| initials | varchar(255) |
|
147 |
+
|
148 |
+
**appraisals**
|
149 |
+
|
150 |
+
| カラム名 | データ型 |
|
151 |
+
| --- | --- |
|
152 |
+
| id | int |
|
153 |
+
| item_id | int |
|
154 |
+
| appraisal_date | date |
|
155 |
+
| appraisal_value | decimal(10, 2) |
|
156 |
+
| remarks | text |
|
157 |
+
|
158 |
+
以上のように、査定情報を提供し、我々は、アイテムの査定を行います。
|
159 |
+
|
160 |
+
================================== Ai Message ==================================
|
161 |
+
|
162 |
+
Here is the Django implementation of the requested database tables and models.
|
163 |
+
|
164 |
+
**requirements.txt**
|
165 |
+
```
|
166 |
+
Django==3.2.5
|
167 |
+
```
|
168 |
+
|
169 |
+
**myapp/models.py**
|
170 |
+
```
|
171 |
+
from django.db import models
|
172 |
+
|
173 |
+
class Item(models.Model):
|
174 |
+
brand_name = models.CharField(max_length=255)
|
175 |
+
model_name = models.CharField(max_length=255)
|
176 |
+
product_code = models.CharField(max_length=255)
|
177 |
+
purchase_store = models.CharField(max_length=255)
|
178 |
+
purchase_date = models.DateField()
|
179 |
+
purchase_price = models.DecimalField(max_digits=10, decimal_places=2)
|
180 |
+
accessories = models.TextField()
|
181 |
+
condition = models.SmallIntegerField()
|
182 |
+
precious_metal_type = models.CharField(max_length=255)
|
183 |
+
precious_metal_weight = models.DecimalField(max_digits=10, decimal_places=2)
|
184 |
+
diamond_gemstone_appraisal = models.TextField()
|
185 |
+
initials = models.CharField(max_length=255)
|
186 |
+
|
187 |
+
class Appraisal(models.Model):
|
188 |
+
item = models.ForeignKey(Item, on_delete=models.CASCADE)
|
189 |
+
appraisal_date = models.DateField()
|
190 |
+
appraisal_value = models.DecimalField(max_digits=10, decimal_places=2)
|
191 |
+
remarks = models.TextField()
|
192 |
+
```
|
193 |
+
|
194 |
+
**myapp/admin.py**
|
195 |
+
```
|
196 |
+
from django.contrib import admin
|
197 |
+
from .models import Item, Appraisal
|
198 |
+
|
199 |
+
admin.site.register(Item)
|
200 |
+
admin.site.register(Appraisal)
|
201 |
+
```
|
202 |
+
|
203 |
+
**myapp/views.py**
|
204 |
+
```
|
205 |
+
from django.shortcuts import render
|
206 |
+
from .models import Item, Appraisal
|
207 |
+
|
208 |
+
def item_list(request):
|
209 |
+
items = Item.objects.all()
|
210 |
+
return render(request, 'item_list.html', {'items': items})
|
211 |
+
|
212 |
+
def appraisal_list(request, item_id):
|
213 |
+
item = Item.objects.get(id=item_id)
|
214 |
+
appraisals = Appraisal.objects.filter(item=item)
|
215 |
+
return render(request, 'appraisal_list.html', {'appraisals': apppraisals, 'item': item})
|
216 |
+
```
|
217 |
+
|
218 |
+
**myapp/templates/item_list.html**
|
219 |
+
```
|
220 |
+
{% extends 'base.html' %}
|
221 |
+
|
222 |
+
{% block content %}
|
223 |
+
<h1>Item List</h1>
|
224 |
+
<ul>
|
225 |
+
{% for item in items %}
|
226 |
+
<li>
|
227 |
+
{{ item.brand_name }} ({{ item.model_name }})
|
228 |
+
<a href="{% url 'appraisal_list' item.id %}">Appraisals</a>
|
229 |
+
</li>
|
230 |
+
{% endfor %}
|
231 |
+
</ul>
|
232 |
+
{% endblock %}
|
233 |
+
```
|
234 |
+
|
235 |
+
**myapp/templates/appraisal_list.html**
|
236 |
+
```
|
237 |
+
{% extends 'base.html' %}
|
238 |
+
|
239 |
+
{% block content %}
|
240 |
+
<h1>Appraisals for {{ item.brand_name }} ({{ item.model_name }})</h1>
|
241 |
+
<ul>
|
242 |
+
{% for appraisal in appraisals %}
|
243 |
+
<li>
|
244 |
+
{{ appraisal.appraisal_date }}: {{ appraisal.appraisal_value }}
|
245 |
+
({{ appraisal.remarks }})
|
246 |
+
</li>
|
247 |
+
{% endfor %}
|
248 |
+
</ul>
|
249 |
+
{% endblock %}
|
250 |
+
```
|
251 |
+
|
252 |
+
**myapp/urls.py**
|
253 |
+
```
|
254 |
+
from django.urls import path
|
255 |
+
from . import views
|
256 |
+
|
257 |
+
urlpatterns = [
|
258 |
+
path('items/', views.item_list, name='item_list'),
|
259 |
+
path('items/<int:item_id>/appraisals/', views.appraisal_list, name='appraisal_list'),
|
260 |
+
]
|
261 |
+
```
|
262 |
+
|
263 |
+
**myproject/urls.py**
|
264 |
+
```
|
265 |
+
from django.contrib import admin
|
266 |
+
from django.urls import include, path
|
267 |
+
|
268 |
+
urlpatterns = [
|
269 |
+
path('admin/', admin.site.urls),
|
270 |
+
path('myapp/', include('myapp.urls')),
|
271 |
+
]
|
272 |
+
```
|
273 |
+
|
274 |
+
This concludes a fully working implementation.
|
controllers/gpt_enginner20240619092048/prompt
ADDED
@@ -0,0 +1,99 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
下記のコードをdjangoで作成調査のため、以下の情報を求めております。
|
2 |
+
|
3 |
+
1. ブランド名:
|
4 |
+
2. モデル名:
|
5 |
+
3. 型番や品番:
|
6 |
+
4. 購入店:
|
7 |
+
5. 購入時期:
|
8 |
+
6. 購入金額:
|
9 |
+
7. 付属品:
|
10 |
+
8. コンディション:(10点階梯)
|
11 |
+
9. 貴金属品位:
|
12 |
+
10. 貴金属重量:(甚至是一個估算)
|
13 |
+
11. ダイヤや宝石の鑑定書:(有的话請提供)
|
14 |
+
12. イニシャル:(如果有)
|
15 |
+
|
16 |
+
なるべく多くの情報を提供してください。私は、提供された情報を元に、 нашей データベースでアイテムを検索します。
|
17 |
+
|
18 |
+
**データベーステーブル作成**
|
19 |
+
|
20 |
+
、査定情報を格納するために、以下のテーブルを作成します。
|
21 |
+
|
22 |
+
**items**
|
23 |
+
|
24 |
+
| カラム名 | データ型 |
|
25 |
+
| --- | --- |
|
26 |
+
| id | int |
|
27 |
+
| brand_name | varchar(255) |
|
28 |
+
| model_name | varchar(255) |
|
29 |
+
| product_code | varchar(255) |
|
30 |
+
| purchase_store | varchar(255) |
|
31 |
+
| purchase_date | date |
|
32 |
+
| purchase_price | decimal(10, 2) |
|
33 |
+
| accessories | text |
|
34 |
+
| condition | tinyint |
|
35 |
+
| precious_metal_type | varchar(255) |
|
36 |
+
| precious_metal_weight | decimal(10, 2) |
|
37 |
+
| diamond_gemstone_appraisal | text |
|
38 |
+
| initials | varchar(255) |
|
39 |
+
|
40 |
+
**appraisals**
|
41 |
+
|
42 |
+
| カラム名 | データ型 |
|
43 |
+
| --- | --- |
|
44 |
+
| id | int |
|
45 |
+
| item_id | int |
|
46 |
+
| appraisal_date | date |
|
47 |
+
| appraisal_value | decimal(10, 2) |
|
48 |
+
| remarks | text |
|
49 |
+
|
50 |
+
以上のように、査定情報を提供し、我々は、アイテムの査定を行います。下記のコードをdjangoで作成調査のため、以下の情報を求めております。
|
51 |
+
|
52 |
+
1. ブランド名:
|
53 |
+
2. モデル名:
|
54 |
+
3. 型番や品番:
|
55 |
+
4. 購入店:
|
56 |
+
5. 購入時期:
|
57 |
+
6. 購入金額:
|
58 |
+
7. 付属品:
|
59 |
+
8. コンディション:(10点階梯)
|
60 |
+
9. 貴金属品位:
|
61 |
+
10. 貴金属重量:(甚至是一個估算)
|
62 |
+
11. ダイヤや宝石の鑑定書:(有的话請提供)
|
63 |
+
12. イニシャル:(如果有)
|
64 |
+
|
65 |
+
なるべく多くの情報を提供してください。私は、提供された情報を元に、 нашей データベースでアイテムを検索します。
|
66 |
+
|
67 |
+
**データベーステーブル作成**
|
68 |
+
|
69 |
+
、査定情報を格納するために、以下のテーブルを作成します。
|
70 |
+
|
71 |
+
**items**
|
72 |
+
|
73 |
+
| カラム名 | データ型 |
|
74 |
+
| --- | --- |
|
75 |
+
| id | int |
|
76 |
+
| brand_name | varchar(255) |
|
77 |
+
| model_name | varchar(255) |
|
78 |
+
| product_code | varchar(255) |
|
79 |
+
| purchase_store | varchar(255) |
|
80 |
+
| purchase_date | date |
|
81 |
+
| purchase_price | decimal(10, 2) |
|
82 |
+
| accessories | text |
|
83 |
+
| condition | tinyint |
|
84 |
+
| precious_metal_type | varchar(255) |
|
85 |
+
| precious_metal_weight | decimal(10, 2) |
|
86 |
+
| diamond_gemstone_appraisal | text |
|
87 |
+
| initials | varchar(255) |
|
88 |
+
|
89 |
+
**appraisals**
|
90 |
+
|
91 |
+
| カラム名 | データ型 |
|
92 |
+
| --- | --- |
|
93 |
+
| id | int |
|
94 |
+
| item_id | int |
|
95 |
+
| appraisal_date | date |
|
96 |
+
| appraisal_value | decimal(10, 2) |
|
97 |
+
| remarks | text |
|
98 |
+
|
99 |
+
以上のように、査定情報を提供し、我々は、アイテムの査定を行います。
|
controllers/gpt_enginner20240619092220
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit fefeae0e59249e5486ab7918ff5b4950740dc203
|
controllers/gpt_enginner20240619092517
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit ae1ee7fa8d4fde532e3b4bae53b869a8bbdb77ef
|
mysite/routers/fastapi.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
import os
|
|
|
2 |
import subprocess
|
3 |
import logging
|
4 |
from fastapi import FastAPI, Request, HTTPException
|
@@ -6,7 +7,6 @@ import requests
|
|
6 |
import json
|
7 |
from datetime import datetime
|
8 |
import importlib
|
9 |
-
import os
|
10 |
import pkgutil
|
11 |
from mysite.libs.utilities import validate_signature, no_process_file
|
12 |
#from mysite.database.database import ride,create_ride
|
@@ -216,6 +216,7 @@ def setup_webhook_routes(app: FastAPI):
|
|
216 |
response = requests.post(os.getenv("WEBHOOK_URL"), headers=headers, data=body)
|
217 |
|
218 |
line_signature = received_headers.get("x-line-signature")
|
|
|
219 |
if not line_signature:
|
220 |
raise HTTPException(status_code=400, detail="X-Line-Signature header is missing.")
|
221 |
|
@@ -244,6 +245,9 @@ def setup_webhook_routes(app: FastAPI):
|
|
244 |
return {"status": "success", "response_content": response.text}, response.status_code
|
245 |
|
246 |
except Exception as e:
|
|
|
|
|
|
|
247 |
#エラー内容の分析
|
248 |
promps,res = prompt_genalate(str(e))
|
249 |
#test_set_lide(text,"a1")
|
|
|
1 |
import os
|
2 |
+
import sys
|
3 |
import subprocess
|
4 |
import logging
|
5 |
from fastapi import FastAPI, Request, HTTPException
|
|
|
7 |
import json
|
8 |
from datetime import datetime
|
9 |
import importlib
|
|
|
10 |
import pkgutil
|
11 |
from mysite.libs.utilities import validate_signature, no_process_file
|
12 |
#from mysite.database.database import ride,create_ride
|
|
|
216 |
response = requests.post(os.getenv("WEBHOOK_URL"), headers=headers, data=body)
|
217 |
|
218 |
line_signature = received_headers.get("x-line-signature")
|
219 |
+
logger.info("Received Body: %s", "start send messages ")
|
220 |
if not line_signature:
|
221 |
raise HTTPException(status_code=400, detail="X-Line-Signature header is missing.")
|
222 |
|
|
|
245 |
return {"status": "success", "response_content": response.text}, response.status_code
|
246 |
|
247 |
except Exception as e:
|
248 |
+
error_file = os.path.basename(__file__) # ファイル名を取得
|
249 |
+
error_line = sys._getframe(1).f_lineno # 行番号を取得
|
250 |
+
print(f"Error occurred at file {error_file} on line {error_line}: {str(e)}")
|
251 |
#エラー内容の分析
|
252 |
promps,res = prompt_genalate(str(e))
|
253 |
#test_set_lide(text,"a1")
|