# 解决方法 ``` python try: response = client.chat.completions.create( model='glm-4', messages=messages, top_p=top_p, ) except: response = client.chat.completions.create( model='glm-4', messages=messages, top_p=top_p, ) ``` # 报错 ``` python # Error code: 400, with error text {"error":{"code":"1301","message":"系统检测到输入或生成内容可能包含不安全或敏感内容,请您避免输入易产生敏感内容的提示语,感谢您的配合。"}} ```