20 lines
634 B
Python
20 lines
634 B
Python
"""Registry loader for Gemini model capabilities."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from .model_registry_base import CapabilityModelRegistry
|
|
from .shared import ProviderType
|
|
|
|
|
|
class GeminiModelRegistry(CapabilityModelRegistry):
|
|
"""Capability registry backed by `conf/gemini_models.json`."""
|
|
|
|
def __init__(self, config_path: str | None = None) -> None:
|
|
super().__init__(
|
|
env_var_name="GEMINI_MODELS_CONFIG_PATH",
|
|
default_filename="gemini_models.json",
|
|
provider=ProviderType.GOOGLE,
|
|
friendly_prefix="Gemini ({model})",
|
|
config_path=config_path,
|
|
)
|