Vercel News

Microsoft Decision-1 now available on AI Gateway

8.5内容质量

TL;DR · AI 摘要

微软Decision-1模型现已通过AI Gateway开放使用,支持分类、评分和布尔决策,可通过多种API调用且无需Azure账户。

核心要点

  • Decision-1支持分类、评分和布尔决策三种响应类型
  • 可通过AI SDK、OpenAI兼容API或TypeSafe兼容API调用
  • 使用AI Gateway无需单独Azure账户或部署

结构提纲

按章节快速跳转。

  1. 宣布Microsoft Decision-1模型已在AI Gateway开放使用

  2. 支持分类、评分和布尔决策三种响应类型,可处理多问题请求

  3. 提供三种调用方式:AI SDK、OpenAI兼容API、TypeSafe兼容API

  4. 无需Azure账户或部署,仅需AI Gateway API密钥

  5. 展示如何通过JavaScript调用模型处理发票支付失败场景

  6. AI Gateway提供统一模型访问、使用跟踪和成本管理

思维导图

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

查看大纲文本(无障碍 / 无 JS 友好)
  • Microsoft Decision-1
    • 功能特性
      • 分类决策
      • 评分决策
      • 布尔决策
    • 集成方式
      • AI SDK
      • OpenAI API
      • TypeSafe API
    • 使用优势
      • 无需Azure账户
      • 统一成本管理

金句 / Highlights

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

#AI模型#API#微软#AI Gateway
打开原文

Microsoft Decision-1 现已上线 AI Gateway - Vercel

Microsoft Decision-1 现已通过 AI Gateway 提供服务。该模型可通过概率、选项和评分来回答关于文本的提问,可用于分类支持请求、选择工作流程中的下一步操作,或根据评分标准评估 AI 响应。

该模型可以回答是/否问题、在命名类别中进行选择,或根据有序标准对输入进行评分。一次请求中多个问题可以共享相同输入。选择和评分结果会为每个选项提供概率,您的应用可根据概率决定是否采取行动或提交不确定结果以供审核。

可通过 AI SDK decision API、OpenAI 兼容的 Decisions API 或 TypeSafe 兼容的 API 调用 Decision-1。您只需一个 AI Gateway API 密钥,无需单独的 Azure 账户或部署。

要开始使用,请在请求中使用 microsoft/microsoft-decision-1 作为模型名称:

API

Decisions API

TypeSafe-compat

code
1
import
{
experimental_decide
as
decide
}
from
'ai'
;
2
3
const
result
=
await
decide
(
{
4
model
:
'microsoft/microsoft-decision-1'
,
5
state
:
'My invoice payment failed and I need help immediately.'
,
6
questions
:
{
7
team
:
{
8
type
:
'choice'
,
9
instructions
:
'Which team should handle the request?'
,
10
criteria
:
{
11
billing
:
'Payment and invoice issues'
,
12
technical
:
'Software and integration issues'
,
13
}
,
14
}
,
15
}
,
16
}
)
;
17
18
console
.
log
(
result
.
answers
.
team
)
;

复制给代理

查看模型详情

↗

AI Gateway 提供统一的模型访问方式,并可跟踪使用情况和成本。Decision 调用会显示在日志中,并与其他模型请求一起计入预算。

请参阅决策文档了解选择、评分和布尔问题的相关信息,或在 AI Gateway 浏览所有决策模型。