Arcanum.ModelProfile.Resolver (arcanum v0.1.2)

Copy Markdown View Source

Resolves a ModelProfile for a given provider and model.

Resolution order (highest to lowest priority):

  1. User overrides — caller-provided map of profile fields
  2. Overlay — provider/model-specific fields from priv/overlays.json
  3. Registry — models.dev cache (single source of truth for base profiles)
  4. Provider default — weakest fallback for local providers not in models.dev
  5. Global default — unknown everything

Summary

Functions

Returns the profile for a provider kind + model combination.

Functions

resolve(provider_kind, model, overrides \\ nil)

@spec resolve(String.t(), String.t(), map() | nil) :: Arcanum.ModelProfile.t()

Returns the profile for a provider kind + model combination.

Optional overrides map takes highest priority over all other sources.