Quyết định không phải chat completion
Họ Decisions đánh giá state của ứng dụng theo các câu hỏi có kiểu noul, choice và score. Hợp đồng này dùng POST /api/v1/decisions, không phải payload messages của OpenAI.
Chọn typesafe/jev, fastino/gliner2.5-multi-v1, hoặc anyrouter/decision để tự động định tuyến qua các mô hình quyết định mà khóa của bạn có thể dùng. Trang mô hình nay ưu tiên lệnh native và request thật.
Một lệnh CLI
curl -fsSL https://anyrouter.dev/setup.sh | bash
anyr login
anyr decision --model typesafe/jevKết quả có cấu trúc giống API, không phải văn bản chat được sinh ra.
SDK bám theo API
Trang mô hình cũng hiển thị mẫu fetch native với state và questions. Các mẫu chat SDK bị bỏ vì chúng gọi sai endpoint cho họ mô hình này.
const res = await fetch("https://anyrouter.dev/api/v1/decisions", {
method: "POST",
headers: {
Authorization: "Bearer " + process.env.ANYROUTER_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({
state: "Help! My payouts have been failing for 3 days.",
model: "typesafe/jev",
questions: {
is_urgent: {
type: "noul",
instructions: "Does this convey urgency?",
},
},
}),
})
console.log(await res.json())Đọc tài liệu Decisions API hoặc mở ứng dụng Decisions đầy đủ. Chi tiết phát hành: Decisions family + anyr decision.
Bài liên quan
Jev Decisions đã có trên trang model
Jev biến trạng thái ứng dụng và câu hỏi có kiểu thành câu trả lời có cấu trúc kèm xác suất. Hãy thử trên trang model, app Decisions hoặc playground.
CLI update: multiple accounts, terminal key management, and agents that delegate
The AnyRouter CLI now handles several accounts side by side, manages API keys without the dashboard, runs plan-then-implement pipelines across two models, and lets coding agents hand tasks to each other — one hop, one key.
Use AnyRouter with the Vercel AI SDK
@anyr/ai-sdk-provider wraps the AnyRouter gateway as a standard Vercel AI SDK provider. Call createAnyRouter(), pass a provider/model id, and generateText, streamText, and generateObject work unchanged — switching models is a one-string edit.
Gửi request đầu trong hai phút
Bắt đầu miễn phí với key của bạn, hoặc nạp rồi trả theo token. Go: $4 credit/tháng — $2/tháng, hoặc miễn phí khi góp một provider key.
Bắt đầu miễn phí