ollama release· github-actions[bot]·· 2 天前精選AI 評分71
Ollama v0.35.0 版新增決策模型功能
v0.35.0
AI 導讀
**Ollama v0.35.0 版新增決策模型功能,提供 /v1/systemone 端點以返回選項、機率與分數。
推薦理由
新增決策模型功能,允許使用者在票務分類、模型路由等場景中直接取得選項與機率,提升工作流程自動化。
正文 · 原文
Decision models
Ollama now supports decision models through /v1/systemone, based on TypeSafe’s Jev API.
Decision models return choices, probabilities, and scores instead of text. Use them for tasks such as ticket triage, model routing, and content classification.
Available models:
ollama pull nimble
Send context and one or more questions:
curl http://localhost:11434/v1/systemone \ -H 'Content-Type: application/json' \ -d '{ "model": "nimble", "state": "Our checkout has returned 500 errors since 9am.", "questions": { "label": { "type": "choice", "instructions": "Which label fits this ticket?", "criteria": { "billing": "Payments and refunds", "bug": "Software errors", "account": "Login and account access" } } } }'
Example response:
{
"model": "nimble",
"answers": {
"label": {
"type": "choice",
"choice": "bug",
"probabilities": {
"billing": 0.0125,
"bug": 0.9781,
"account": 0.0093
},
"confidence": 0.8906
}
},
"usage": {
"input_tokens": 174,
"output_tokens": 1
}
}The API supports three question types:
choice: Select an option and return probabilities for each.noul: Return the probability that a condition is true.score: Return a score across an ordered set of criteria
What's Changed
- Settings now opens without waiting for model discovery.
- Fixed the macOS update menu and icon not reflecting an available update at startup.
- Fixed stalled MLX model downloads hanging indefinitely.
- Requests containing the deprecated
typical_pparameter now log a warning instead of failing.
Full Changelog: v0.34.4...v0.35.0
來源:ollama release · github.com