yangtb24 commited on
Commit
d0a29d2
·
verified ·
1 Parent(s): 10ec2ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -323,7 +323,7 @@ def handsome_chat_completions():
323
 
324
  user_content = extract_user_content(data.get("messages", []))
325
 
326
- phrases_to_check = ["hello", "你好", "什么模型", "签到", "社工", "你是谁"]
327
  canned_response_content = "这是公益api,模型全部可用且保真,请不要对模型进行无意义的测试,请尽量不要使用高级模型解决没必要的问题。\n换个话题吧,请不要对模型进行无意义的测试,请尽量不要使用高级模型解决没必要的问题。"
328
 
329
  if any(phrase in user_content.lower() for phrase in phrases_to_check):
 
323
 
324
  user_content = extract_user_content(data.get("messages", []))
325
 
326
+ phrases_to_check = ["hello", "你好", "什么模型", "签到", "社工", "你是谁", "'content': 'hi'"]
327
  canned_response_content = "这是公益api,模型全部可用且保真,请不要对模型进行无意义的测试,请尽量不要使用高级模型解决没必要的问题。\n换个话题吧,请不要对模型进行无意义的测试,请尽量不要使用高级模型解决没必要的问题。"
328
 
329
  if any(phrase in user_content.lower() for phrase in phrases_to_check):