Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BadRequestError: Error code: 400 - {'detail': 'Content Exists Risk'} #30

Open
judeomg opened this issue May 15, 2024 · 6 comments
Open

Comments

@judeomg
Copy link

judeomg commented May 15, 2024

API调用时,这个错误是什么原因引起的?token超出限制吗?那么该如何确保token不超出限制呢?

@qkxie
Copy link

qkxie commented May 16, 2024

有敏感词。

@williamjeong2
Copy link

Too many sensitive words. Uncomfortable to use in real life.

@qkxie
Copy link

qkxie commented May 17, 2024

Toooooo many sensitive words. In China, we call this situation self-castration.

@luofuli
Copy link
Member

luofuli commented May 28, 2024

Please retry the API now. We've updated the content safety strategies.
@judeomg

@qkxie
Copy link

qkxie commented May 28, 2024

@luofuli This error still exists. My dataset is 100 comments of Xiaohongshu. When I want to use deepseek to analyze the sentiment of these comments, this error raised. I have retry for different keyword in Xiaohongshu, and almost any 100 comments of any notes of any keyword will trigger your stupid risk alarm.

@qkxie
Copy link

qkxie commented May 28, 2024

This system and message will trigger the alarm:

system = '你是一个非结构化数据转结构化的提取专家。善于从长文本中提取出结构化的信息。'

msg = '''我会给你一段文本,文本中提到了对某赛道,可以按类别进行拆分,也可能按应用进行拆封。你需要把拆封结果提取出来,并以JSON格式返回。

例如:

输入:

` ``
本文重点关注如下国家或地区:
    北美(美国和加拿大)
    欧洲(德国、英国、法国、意大利和其他欧洲国家)
    亚太(中国、日本、韩国、中国台湾地区、东南亚、印度等)
    拉美(墨西哥和巴西等)
    中东及非洲地区(土耳其和沙特等)
按产品类型拆分,包含:
    单相
    三相
按应用拆分,包含:
    音视频设备
    电源
    电信系统
    其他
` ``

输出: {{"category": ["单相", "三相"], "application": ["音视频设备", "电源", "电信系统", "其他"]}}

只需要提取类别和应用的拆分就可以了。其他拆分不需要提取。如果没有按应用拆封,就不反悔application字段。

现在,请从下面的文本中提取:'''

And you will get the alarm.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants