curl https://api.openai.com/v1/decisions \ -H "Authorization: Bearer $(llm keys get openai)" \ -H "Content-Type: application/json" \ --data ' { "model": "gpt-6-luna", "input": [{ "role": "user", "content": [ {"type": "input_text", "text": "新しい製品機能に怒っている"} ] }], "questions": [{ "type": "predicate", "name": "complaint", "instructions": "これはクレームですか?" }, { "type": "predicate", "name": "compliment", "instructions": "これは褒め言葉ですか?" }] }' 返された内容: { "model": "gpt-6-luna", "answers": [ { "type": "predicate", "name": "complaint", "probability": 0.91 }, { "type": "predicate", "name": "compliment", "probability": 0.06 } ], "usage": { "input_tokens": 310, "input_tokens_details": { "cached_tokens": 0, "cache_write_tokens": 0 }, "output_tokens": 0, "output_tokens_details": { "reasoning_tokens": 0 }, "total_tokens": 310 } } この https://api.openai.com/v1/decisions エンドポイントは注目すべきだね。通常、OpenAIがこういうエンドポイントを定義すると、他のプロバイダーのデファクトスタンダードになることが多いから。(これを新しいllmプラグインにしたよ: https://github.com/simonw/llm-openai-decisions)