Vercel News

Perplexity's Decider V1.2 models now available on AI Gateway

8.5内容质量

TL;DR · AI 摘要

Perplexity推出Decider V1.2多模态决策模型,支持文本/图像分类、路由和评分,提供27B和4B两个版本,通过AI Gateway统一调用。

核心要点

  • Decider V1.2 27B适合复杂判断,4B适合高吞吐量任务
  • 支持布尔/选择/评分三类决策,可通过SDK和API集成
  • AI Gateway提供统一API密钥管理,无平台费用

结构提纲

按章节快速跳转。

  1. 宣布Perplexity Decider V1.2模型在AI Gateway上线

  2. 支持多模态决策,处理文本/图像/结构化数据

  3. 27B版本适合精细判断,4B版本适合高吞吐场景

  4. 展示通过AI SDK处理货物损坏检测的代码示例

  5. 支持Decisions API和TypeSafe兼容接口

  6. 通过AI Gateway统一管理模型调用和成本监控

思维导图

用一张图看清主题之间的关系。

查看大纲文本(无障碍 / 无 JS 友好)
  • Perplexity Decider V1.2模型
    • 模型版本
      • 27B(精细判断)
      • 4B(高吞吐)
    • 核心功能
      • 布尔决策
      • 分类选择
      • 评分评估
    • 集成方式
      • AI SDK
      • Decisions API
      • TypeSafe兼容API

金句 / Highlights

值得收藏与分享的关键句。

#AI模型#决策系统#Perplexity#AI Gateway
打开原文

Perplexity 的 Decider V1.2 模型现已在 AI Gateway 上发布 - Vercel

Perplexity Decider V1.2 27B 和 Decider Flash V1.2 4B 现已上线 AI Gateway。这两款多模态决策模型可用于内容分类、请求路由以及文本、结构化记录和图像的评分。

模型通过概率回答问题类型。布尔问题返回“是”的可能性,选择问题从您定义的类别中选择,评分问题则根据有序评分标准进行评估。您的应用可利用这些结果进行工单路由、标记损坏产品或发送不确定决策供人工审核。单次请求中多个问题可共享相同输入。

  • Decider V1.2 27B (perplexity/pplx-decider-v1.2) 是更大模型,适用于精细判断和复杂评分标准
  • Decider Flash V1.2 4B (perplexity/pplx-decider-flash-v1.2) 是更小模型,适用于高吞吐量的标注、过滤和路由,配合清晰标准

以下示例使用 perplexity/pplx-decider-v1.2 通过 AI SDK、Decisions API 和 TypeSafe 兼容 API 检查相同配送报告:

AI SDK

Decisions API

TypeSafe 兼容

code
1
import
{
experimental_decide
as
decide
}
from
'ai'
;
2
3
const
result
=
await
decide
(
{
4
model
:
'perplexity/pplx-decider-v1.2'
,
5
state
:
'The tablet arrived with a shattered display and will not turn on.'
,
6
questions
:
{
7
damaged
:
{
8
type
:
'boolean'
,
9
instructions
:
'Does this report a damaged delivery?'
,
10
}
,
11
}
,
12
}
)
;
13
14
console
.
log
(
result
.
answers
.
damaged
)
;

复制给代理

查看模型详情

↗

对于图像输入,通过 AI SDK 或 TypeSafe 兼容 API 在 JSON state 中嵌入 base64 编码的 image_url 对象。请参阅 Perplexity 的图像格式和决策模型文档了解请求格式及问题类型。

在模型游乐场体验 Decider V1.2 27B,或尝试 Decider Flash V1.2 4B。

通过 AI Gateway 使用单一 API 密钥调用模型,并在统一界面监控使用情况和成本。决策请求会记录在请求日志中并计入支出预算。推理过程采用服务商定价,无附加利润或平台费用。通过 BYOK 提供自有服务商凭证时同样适用此规则。

浏览决策模型目录查看可用选项。