"""实现层 - Doubao模型客户端"""
from typing import Dict, Any
from .base_client import BaseLLMClient


class DoubaoClient(BaseLLMClient):
    """Doubao模型客户端"""

    def __init__(self, config: Dict[str, Any]):
        """
        初始化Doubao客户端

        Args:
            config: 配置字典，包含 DOUBAO_SERVER_URL, DOUBAO_MODEL_ID, DOUBAO_API_KEY
        """
        super().__init__(
            server_url=config.get("DOUBAO_SERVER_URL", ""),
            model_id=config.get("DOUBAO_MODEL_ID", ""),
            api_key=config.get("DOUBAO_API_KEY", ""),
            timeout=config.get("timeout", 30),
            max_retries=config.get("max_retries", 2)
        )
