"""Model registry: delegates to llx for model selection and routing."""

from proxym.providers._bridge import get_best_available_model, filter_models, resolve_model
from proxym.providers._types import TaskTier, Capability, ModelSpec  # keep proxym types

# Backward compatibility aliases
find_model_by_litellm = resolve_model
all_model_ids = lambda: [m["model_id"] for m in filter_models()]
models_for_tier = lambda tier, **kw: filter_models(tier=tier)
cheapest_model = lambda tier, **kw: get_best_available_model(tier)
get_model = resolve_model  # Alias for consistency

# Export main functions
__all__ = [
    "get_best_available_model",
    "filter_models", 
    "resolve_model",
    "get_model",
    "TaskTier",
    "Capability",
    "ModelSpec",
    # Backward compat
    "find_model_by_litellm",
    "all_model_ids",
    "models_for_tier",
    "cheapest_model",
]
