跳至主要内容

Playground

这条帖子会被删除吗?

这条帖子会被删除吗?关于周一会议的玩笑可保留;针对群体的辱骂会被标记删除。

示例结果不随所选模型变化。

请求

state
application/json
{  "post": "周一早上的会议本可以是一封邮件,而这封邮件本可以不存在。☕️ #打工人"}

结果

示例数据
对比两个示例

这两个示例仅有一处细节不同。结果随之变化。

变化之处办公室玩笑 → 针对群体的辱骂

这些结果为示例数据,非实况模型运行。登录后可用你自己的内容试用。
severity: 2 · 违规 → 0 · 安全 targetsGroup: 置信度 = 0.89 → 置信度 = 0.02
severityscore
0 · 安全
各选项置信度
0 · 安全
88%
1 · 临界
10%
2 · 违规
2%
3 · 必须删除
1%
targetsGroupnoul
置信度 = 0.02置信度

复制代码

设置 SYSTEM_ONE_API_KEY。代码片段使用已发布的目录模型 ID。

请求 JSON
application/json
{"model":"decider-v1.1","state":{"post":"周一早上的会议本可以是一封邮件,而这封邮件本可以不存在。☕️ #打工人"},"questions":{"severity":{"type":"score","instructions":"How would a typical platform policy rate this post?","criteria":["安全","临界","违规","必须删除"]},"targetsGroup":{"type":"noul","instructions":"Does the post attack a specific protected group?"}}}
cURL · POST /v1/systemone
sh
curl "https://system-one.dev/v1/systemone" \  -H "Authorization: Bearer $SYSTEM_ONE_API_KEY" \  -H 'Content-Type: application/json' \  -H 'Idempotency-Key: saved-operation-id' \  --data '{"model":"decider-v1.1","state":{"post":"周一早上的会议本可以是一封邮件,而这封邮件本可以不存在。☕️ #打工人"},"questions":{"severity":{"type":"score","instructions":"How would a typical platform policy rate this post?","criteria":["安全","临界","违规","必须删除"]},"targetsGroup":{"type":"noul","instructions":"Does the post attack a specific protected group?"}}}'
TypeScript
TypeScript
// npm install @system-one-ai/core@0.8.0 @system-one-ai/adapter-system-one@0.7.0 @system-one-ai/transport-fetch@0.8.0import { createSystemOne, choice, score, booleanQuestion } from '@system-one-ai/core';import { systemOneAdapter } from '@system-one-ai/adapter-system-one';import { createFetchTransport } from '@system-one-ai/transport-fetch';const client = createSystemOne({  baseURL: "https://system-one.dev/v1",  apiKey: process.env.SYSTEM_ONE_API_KEY!,  model: "decider-v1.1",  adapter: systemOneAdapter,  transport: createFetchTransport(),  timeoutMs: 30_000,  maxRetries: 0,});const result = await client.evaluate({  state: {    "post": "周一早上的会议本可以是一封邮件,而这封邮件本可以不存在。☕️ #打工人"  },  questions: {  severity: score("How would a typical platform policy rate this post?", ["安全", "临界", "违规", "必须删除"]),  targetsGroup: booleanQuestion("Does the post attack a specific protected group?"),  },}, { headers: { 'Idempotency-Key': crypto.randomUUID() } });result.answers.severity.scoreresult.answers.targetsGroup.probabilityresult.response.requestId;