AxiomAi.LocalModels (AxiomAI v0.1.9)

View Source

Modular configuration system for local AI models. Supports multiple model categories with extensible templates and configurations.

Summary

Functions

Creates a custom model configuration using a template.

Gets a specific model configuration by key.

Returns all available model configurations organized by category.

Gets all available categories.

Lists all available predefined model keys.

Lists models by category.

Registers a new model configuration.

Functions

create_custom_config(template_type, overrides \\ %{})

@spec create_custom_config(atom(), map()) :: map()

Creates a custom model configuration using a template.

get_model_config(model_key)

@spec get_model_config(String.t()) :: {:ok, map()} | {:error, :not_found}

Gets a specific model configuration by key.

get_predefined_models()

@spec get_predefined_models() :: %{required(String.t()) => map()}

Returns all available model configurations organized by category.

list_categories()

@spec list_categories() :: [atom()]

Gets all available categories.

list_models()

@spec list_models() :: [String.t()]

Lists all available predefined model keys.

list_models_by_category(category)

@spec list_models_by_category(atom()) :: [String.t()]

Lists models by category.

register_model(model_key, category, config)

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

Registers a new model configuration.