Simon Willison 博客 · 2026/10/6 23:04:13
Simon Willison 发布 OpenAI Decisions API 插件
开发者 Simon Willison 发布了 `llm-openai-decisions` 插件,支持通过 LLM CLI 调用 OpenAI 新推出的 Jev-style Decisions API。该插件允许用户利用 `gpt-6-luna` 模型处理文本和图像输入,执行二元判断、多选或评分任务,且仅按输入 Token 计费。
报道全文原始报道全文
Release: llm-openai-decisions 0.1a0
OpenAI released their new Jev-style Decisions API, as previously announced at last week's DevDay.
Since I already have an llm-typesafe plugin for talking to Jev, I had GPT-6 Astra read the new OpenAI API documentation and build an llm-openai-decisions plugin inspired by llm-typesafe.
Unlike Jev, the new gpt-6-luna decision model supports image input in addition to text. Both models charge for input it and not for output: OpenAI's is 10 cents per million input tokens, Jev's is 4.2 cents per million.
Otherwise the API shape is very similar to Jev, at least conceptually. Jev supports three question types for yes/no, choices, or scores. OpenAI Decisions supports the same three types.
Install the plugin like this:
llm install llm-openai-decisionsHere's an example query against an image attachment:
llm -m openai-decisions/gpt-6-luna \
-a https://static.simonwillison.net/static/2025/two-pelicans.jpg \
-s 'Does this image contain any mammals?'And example output:
{"type": "predicate", "name": "evaluation", "probability": 0.0}Consult the README for full details of how to run the other types of questions.