Skip to main content

Module catalog

Module catalog 

Source
Expand description

Auto-generated model catalog with metadata for all known LLM models.

The catalog is generated at build time by the aether-llm-codegen crate from models.json. Do not edit generated.rs by hand – modify models.json and rebuild instead.

§LlmModel enum

The central type is LlmModel, with one variant per provider family: Anthropic(AnthropicModel), OpenRouter(OpenRouterModel), Gemini(GeminiModel), Ollama(String), LlamaCpp(String), etc.

Key methods on LlmModel:

LlmModel implements FromStr and Display for parsing and formatting "provider:model_id" strings (e.g. "anthropic:claude-opus-4-6").

§Helper functions

  • available_models() – Returns catalog models whose required env var is set.
  • get_local_models() – Returns available_models() plus any locally discovered models (Ollama instances, llama.cpp servers).

Enums§

AnthropicModel
BedrockFoundationModel
BedrockModel
CodexModel
DeepSeekModel
GeminiModel
LlmModel
A model from a specific provider
MoonshotModel
OpenRouterModel
OpenaiModel
Provider
Typed provider identifier — covers both catalog providers (Anthropic, Codex, …) and dynamic providers whose model name is user-supplied (Ollama, LlamaCpp).
ZAiModel

Functions§

available_models
Returns models whose provider env var is set
get_local_models
Returns available catalog models plus any locally discovered models.