Update app.py
Browse files
app.py
CHANGED
|
@@ -141,8 +141,8 @@ def request_to_v2(message, cookie, user_id,context=[]):
|
|
| 141 |
|
| 142 |
## 拦截违法数据,错误的数据。
|
| 143 |
if "Anthropic's Acceptable Use Policy" in str(bots):
|
| 144 |
-
|
| 145 |
-
response =">>>>>> 查询失败\n报错信息为:"+ str(bots) + f"\n response信息:\n错误代码:{
|
| 146 |
print(response)
|
| 147 |
context += [response]
|
| 148 |
responses = [(u, b) for u, b in zip(context[::2], context[1::2])]
|
|
|
|
| 141 |
|
| 142 |
## 拦截违法数据,错误的数据。
|
| 143 |
if "Anthropic's Acceptable Use Policy" in str(bots):
|
| 144 |
+
|
| 145 |
+
response =">>>>>> 查询失败\n报错信息为:"+ str(bots) + f"\n response信息:\n错误代码:{404}\n错误信息{str(bots)}"
|
| 146 |
print(response)
|
| 147 |
context += [response]
|
| 148 |
responses = [(u, b) for u, b in zip(context[::2], context[1::2])]
|