Miosa.Models (Miosa v1.0.1)

Copy Markdown View Source

List available LLM models routed through the MIOSA intelligence gateway.

Routes live under /api/v1/intelligence/ and require an mki_* intelligence key or a JWT (dashboard users).

Summary

Functions

Get a single model by id, filtering the list response client-side.

List all models available to the calling tenant (OpenAI-compatible shape).

Functions

get(client, model_id)

@spec get(Miosa.Client.t(), String.t()) :: Miosa.Client.result(map() | nil)

Get a single model by id, filtering the list response client-side.

Returns {:ok, model} or {:ok, nil} if not found.

list(client, filters \\ %{})

@spec list(Miosa.Client.t(), map()) :: Miosa.Client.result(list())

List all models available to the calling tenant (OpenAI-compatible shape).

Accepts optional filter params (e.g. provider:, type:).