dataflow.registries.model_registry¶
Model Registry Client for Haive.
This module provides a client interface for working with the registry system to access LLM and embedding models with dynamic environment variable detection.
Classes¶
Client for working with registered LLM and embedding models. |
Module Contents¶
- class dataflow.registries.model_registry.ModelRegistry¶
Client for working with registered LLM and embedding models.
Initialize the model registry client.
- detect_environment_variables()¶
Detect available environment variables for LLM and embedding. providers.
- Returns:
Dict mapping provider names to available environment variables
- get_available_embedding_providers()¶
Get all available embedding providers.
- get_available_llm_providers()¶
Get all available LLM providers.
- get_embedding_model(model_id)¶
Get a specific embedding model by ID.
- get_embedding_models(provider=None, only_available=False)¶
Get all embedding models, optionally filtered by provider.
- get_llm_model(model_id)¶
Get a specific LLM model by ID.
- get_llm_models(provider=None, only_available=False)¶
Get all LLM models, optionally filtered by provider.
- get_required_environment_vars()¶
Scan source code to detect environment variables used by LLM. providers.
- get_secret_from_vault(var_name)¶
Get a secret value from the vault.
- normalize_model_data(model)¶
Normalize model data to ensure consistent field access.
- update_provider_availability()¶
Scan environment variables and update provider availability. status.