xiaolv commited on
Commit
46dbe7f
1 Parent(s): 36de503

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- response.text = str(bots)
145
- response =">>>>>> 查询失败\n报错信息为:"+ str(bots) + f"\n response信息:\n错误代码:{response.status_code}\n错误信息{response.text}"
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])]