LLMDB.Enrich.AzureWireProtocol (LLM DB v2026.4.6)

Copy Markdown View Source

Wire protocol enrichment using Azure AI Foundry inference task metadata.

Fetches model catalog data from Azure AI Foundry's public API and uses the inferenceTasks field to determine which wire protocol each Azure model supports (openai_responses, openai_completion, anthropic_messages).

Only enriches models from Azure providers since models.dev already syncs model data but lacks wire protocol information for Azure's model catalog.

  • pull/1 fetches the Azure catalog and caches locally
  • build_lookup/0 reads cached data and builds a model -> wire_protocol map
  • enrich_models/1 applies wire protocol to Azure models using the lookup

Summary

Functions

build_lookup()

@spec build_lookup() :: %{required(String.t()) => atom()}

enrich_models(models)

@spec enrich_models([map()]) :: [map()]

pull(opts \\ %{})

@spec pull(map()) :: :noop | {:ok, String.t()} | {:error, term()}