PtcRunner.Kernel.ModelSelectorDisclosure (PtcRunner v0.14.0)

Copy Markdown View Source

The single rule deciding which configured model selectors a command may print.

doctor --show-model-selectors and models both name the selector a host document configured for an LLM installation. An openai-compat: selector carries the operator's own endpoint, so it is withheld rather than disclosed. Both commands ask this module instead of reading install directly, so a new reader cannot publish what the older one refuses.

Summary

Functions

Adds model_selector to every row whose alias names a disclosable selector.

Returns the disclosable selector one installed alias configured.

Functions

annotate(rows, host)

@spec annotate([map()], PtcRunner.Kernel.HostConfig.t() | nil) :: [map()]

Adds model_selector to every row whose alias names a disclosable selector.

Rows are the public per-alias maps the doctor and models results carry, keyed by "alias". A row without a disclosable selector is returned unchanged, so the field stays absent rather than null.

selector(arg1, name)

@spec selector(PtcRunner.Kernel.HostConfig.t() | nil, term()) ::
  {:ok, binary()} | :withheld

Returns the disclosable selector one installed alias configured.