"""Эмбеддер на базе GigaChat API."""

from app.core.shared.gigachat.client import GigaChatClient


class GigaChatEmbedder:
    def __init__(self, client: GigaChatClient) -> None:
        self._client = client

    def embed(
        self,
        texts: list[str],
        *,
        timeout_sec: int | None = None,
        max_retries: int | None = None,
    ) -> list[list[float]]:
        return self._client.embed(texts, timeout_sec=timeout_sec, max_retries=max_retries)
