Pixir.ModelsRefresh (pixir v0.1.12)

Copy Markdown View Source

Explicit, fail-closed model-catalog discovery.

Refresh is never invoked implicitly. Each provider is queried only when Pixir has an authentication kind supported by that provider's public models endpoint. Successful provider lists are merged into the raw config JSON with an atomic write; skipped or failed providers retain their existing config keys.

Summary

Functions

Return the current effective catalogs and their local source without network access.

Query supported model endpoints and atomically persist each successful catalog.

Types

result()

@type result() :: %{required(String.t()) => term()}

Functions

catalog(opts \\ [])

@spec catalog(keyword()) :: {:ok, result()} | {:error, map()}

Return the current effective catalogs and their local source without network access.

refresh(opts \\ [])

@spec refresh(keyword()) :: {:ok, result()} | {:error, map()}

Query supported model endpoints and atomically persist each successful catalog.