LLMProxy.ProviderUsage.Source (llm_proxy v0.2.0)

Copy Markdown View Source

Resolves provider-token records to qualified live usage sources.

Codex is a built-in source. GLM sources come from named providers that use a Z.AI adapter or explicitly set usage_adapter: "glm".

Summary

Types

t()

@type t() :: %LLMProxy.ProviderUsage.Source{
  account_label: String.t(),
  adapter: module(),
  auth_scheme: :raw | :bearer | nil,
  base_url: String.t() | nil,
  config_error: String.t() | nil,
  provider_label: String.t(),
  stored_token: LLMProxy.Schemas.ProviderToken.t(),
  token_id: integer(),
  usage_paths: [String.t()]
}

Functions

accounts()

@spec accounts() :: [t()]

supported_account?(id)

@spec supported_account?(integer()) :: boolean()