EmpirioLabs で利用できる意思決定モデルモデルを閲覧し、従量課金の1つの API から呼び出せます。
Aplomb 1 は POST /v1/decisions でコンテンツに関する質問に答えます。コンテンツを state に、質問を questions に入れ、モデル ID aplomb-1 と一緒に送信してください。各回答は生成テキストではなく、確率と信頼度を返します。 model ID は上のどのモデルにも差し替えられます。 EmpirioLabs ダッシュボードで API キーを取得してください。
curl https://api.empiriolabs.ai/v1/decisions \
-H "Authorization: Bearer $EMPIRIOLABS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "aplomb-1",
"state": "I was charged twice for my subscription this month. Please refund the duplicate charge today.",
"questions": {
"is_urgent": {"type": "noul", "instructions": "Does the customer need a resolution today?"},
"department": {
"type": "choice",
"instructions": "Which team should handle this message?",
"criteria": {"billing": null, "technical": null, "sales": null}
}
}
}'EmpirioLabs には 2 意思決定モデルモデル APIがあります(Aplomb 1, Aplomb 1 Omni など)。各モデルにはライブ料金、パラメーター、クイックスタートを備えた専用 API ページがあります。
すべての意思決定モデルモデルは従量課金で、月額最低料金はありません。正確な料金表は各モデルのページにあり、常に API の請求額と一致します。
いいえ。ここにあるすべてのモデルはEmpirioLabs プレイグラウンドで動きます。コードを書かずにオプションを設定して結果を確認できる、使いやすいブラウザ内インターフェースです。自動化したくなったら、同じモデルを API から利用できます。