HTTP backend for OpenAI's Decisions API (POST /v1/decisions), served
by OpenAI (gpt-6-luna) and by vLLM.
Nous.DecisionModel.parse("openai_decisions:gpt-6-luna")
Nous.DecisionModel.parse("openai_decisions:Qwen/Qwen3-0.6B", base_url: "http://localhost:8000")Mapping
Nous.DecisionModel.Question | Decisions API |
|---|---|
id | name (answers are matched back by name, in declared order) |
:noul | predicate; the answer's probability is the noul |
:choice criteria [{key, desc}] | choices: [{value, description}] |
:score criteria [desc] | levels: [{label}] |
A predicate has no criteria field, so :noul criteria are appended to
the instructions as True if: ... / False if: ... lines. A string state
is sent as input; any other state is sent as its JSON text (vLLM's MVP
accepts only text input). A refusal answer is an error
(reason: :invalid_response): a refused check is never read as an answer.
Options
:base_url- server root. Default"https://api.openai.com"(a trailing/v1is accepted).:api_key- bearer token. Default:OPENAI_API_KEYwhenbase_urlis OpenAI's; optional for self-hosted servers.:timeout- request timeout in ms. Default5_000.:allow_private_hosts- allow a private-networkbase_url(loopback is always allowed).:max_state_tokens- token budget. Default 16,384.:http_backend- aNous.HTTP.Backendmodule for this backend's requests.
Errors map as in Nous.DecisionModel.Backend.SystemOne.