TypeSafe.Models (TypeSafe AI v0.1.0-alpha.1)

Copy Markdown View Source

The models endpoint: GET /v1/models.

The path is not documented on the public API reference; it comes from the official Python SDK's constants (MODELS_PATH = "/v1/models"), and the response shape {"models": [{"name", "description", "release_date"}]} from its generated schema.

Summary

Functions

Lists the models available to the account.

The models endpoint path.

Functions

list(client, opts \\ [])

@spec list(TypeSafe.Client.t(), [TypeSafe.HTTP.call_option()]) ::
  {:ok, [TypeSafe.Model.t()]} | {:error, TypeSafe.Error.t()}

Lists the models available to the account.

Accepts the same per-call options as TypeSafe.HTTP.get/3.

path()

@spec path() :: String.t()

The models endpoint path.