Liking cljdoc? Tell your friends :D

com.blockether.vis.internal.decisions.openai

OpenAI Decisions API behind the one /v1/systemone contract.

A model named openai/<id> runs on OpenAI instead of a local bundle. This namespace converts validated questions to OpenAI's request, then converts the ordered answers back to the local answer shapes. Only an OpenAI API key works: the Decisions API refuses ChatGPT (Codex) sign-in tokens.

OpenAI Decisions API behind the one `/v1/systemone` contract.

A model named `openai/<id>` runs on OpenAI instead of a local bundle. This
namespace converts validated questions to OpenAI's request, then converts the
ordered answers back to the local answer shapes. Only an OpenAI API key works:
the Decisions API refuses ChatGPT (Codex) sign-in tokens.
raw docstring

credentialsclj

(credentials)

The OpenAI API key and base URL, or nil. Never the Codex sign-in token.

The configured openai provider wins: its api_key_command, then its api_key. The OPENAI_API_KEY environment variable is the fallback.

The OpenAI API key and base URL, or nil. Never the Codex sign-in token.

The configured `openai` provider wins: its `api_key_command`, then its
`api_key`. The `OPENAI_API_KEY` environment variable is the fallback.
sourceraw docstring

infer!clj

(infer! name input items)

Answer validated questions with OpenAI model name (openai/<id>) and input text.

Answer validated questions with OpenAI model `name` (`openai/<id>`) and input text.
sourceraw docstring

known-modelsclj

OpenAI classifier models that the model catalog lists. Other openai/ ids still pass through.

OpenAI classifier models that the model catalog lists. Other `openai/` ids still pass through.
sourceraw docstring

model?clj

(model? name)

True when name selects an OpenAI decision model.

True when `name` selects an OpenAI decision model.
sourceraw docstring

models-statusclj

(models-status)

Catalog rows for the known OpenAI models. Remote rows have no installed key.

Catalog rows for the known OpenAI models. Remote rows have no `installed` key.
sourceraw docstring

request-bodyclj

(request-body model-id input items)

The OpenAI /v1/decisions body for one model id, input text and validated questions.

The OpenAI `/v1/decisions` body for one model id, input text and validated questions.
sourceraw docstring

response->resultclj

(response->result name items body)

The local decision result for OpenAI response body, keyed by question id in request order.

The local decision result for OpenAI response `body`, keyed by question id in request order.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close