Nous.DecisionModel.Backend.OpenAIDecisions (nous v0.21.1)

Copy Markdown View Source

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.QuestionDecisions API
idname (answers are matched back by name, in declared order)
:noulpredicate; 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 /v1 is accepted).
  • :api_key - bearer token. Default: OPENAI_API_KEY when base_url is OpenAI's; optional for self-hosted servers.
  • :timeout - request timeout in ms. Default 5_000.
  • :allow_private_hosts - allow a private-network base_url (loopback is always allowed).
  • :max_state_tokens - token budget. Default 16,384.
  • :http_backend - a Nous.HTTP.Backend module for this backend's requests.

Errors map as in Nous.DecisionModel.Backend.SystemOne.