跳至主要内容

Playground

这封邮件是钓鱼吗?

这封邮件是钓鱼吗?仿冒 Apple 的通知判为高风险,公司内部的维护通知判为低风险。

相关文章决策模型是什么?System One 模型、Jev 与 OpenAI Decisions API 对比

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

请求

state
email
fromApple 支持 <no-reply@apple-id-verify.co>subject【紧急】您的 Apple ID 将在 24 小时内被停用body我们检测到异常登录。请立即点击下方链接并输入您的 Apple ID 密码和验证码以保留账户:hxxp://apple-id-verify.co/login

结果

示例数据
对比两个例子

两个例子只差一处,结果会跟着变。

改了什么仿冒品牌通知 → 公司内部维护通知

以下结果为示例数据,并非模型实时输出。登录后可以换成你自己的内容。
isPhishing:置信度 = 0.04 → 置信度 = 0.97 tactic:none · 正常 → credentials · 索要凭证
isPhishingnoul
置信度 = 0.97置信度
tacticchoice
credentials · 索要凭证
各选项置信度
冒充品牌
31%
制造紧迫感
22%
索要凭证
45%
正常
2%

复制代码

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

请求 JSON
application/json
{"model":"decider-v1.1","state":{"from":"Apple 支持 <no-reply@apple-id-verify.co>","subject":"【紧急】您的 Apple ID 将在 24 小时内被停用","body":"我们检测到异常登录。请立即点击下方链接并输入您的 Apple ID 密码和验证码以保留账户:hxxp://apple-id-verify.co/login"},"questions":{"isPhishing":{"type":"noul","instructions":"Is this email a phishing attempt?","criteria":{"true":"试图骗取账号、凭证或付款","false":"正常业务邮件"}},"tactic":{"type":"choice","instructions":"Which tactic does the email mainly use?","criteria":{"impersonation":"冒充品牌","urgency":"制造紧迫感","credentials":"索要凭证","none":"正常"}}}}
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":{"from":"Apple 支持 <no-reply@apple-id-verify.co>","subject":"【紧急】您的 Apple ID 将在 24 小时内被停用","body":"我们检测到异常登录。请立即点击下方链接并输入您的 Apple ID 密码和验证码以保留账户:hxxp://apple-id-verify.co/login"},"questions":{"isPhishing":{"type":"noul","instructions":"Is this email a phishing attempt?","criteria":{"true":"试图骗取账号、凭证或付款","false":"正常业务邮件"}},"tactic":{"type":"choice","instructions":"Which tactic does the email mainly use?","criteria":{"impersonation":"冒充品牌","urgency":"制造紧迫感","credentials":"索要凭证","none":"正常"}}}}'
TypeScript
TypeScript
// npm install @system-one-ai/core@0.6.0 @system-one-ai/transport-fetch@0.6.0 @system-one-ai/adapter-system-one@0.6.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: {    "from": "Apple 支持 <no-reply@apple-id-verify.co>",    "subject": "【紧急】您的 Apple ID 将在 24 小时内被停用",    "body": "我们检测到异常登录。请立即点击下方链接并输入您的 Apple ID 密码和验证码以保留账户:hxxp://apple-id-verify.co/login"  },  questions: {  isPhishing: booleanQuestion("Is this email a phishing attempt?", {    true: "试图骗取账号、凭证或付款",    false: "正常业务邮件",  }),  tactic: choice("Which tactic does the email mainly use?", {    impersonation: "冒充品牌",    urgency: "制造紧迫感",    credentials: "索要凭证",    none: "正常",  }),  },}, { headers: { 'Idempotency-Key': crypto.randomUUID() } });result.answers.isPhishing.probabilityresult.answers.tactic.choiceresult.response.requestId;