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


class QwenClient(BaseLLMClient):
    """Qwen模型客户端"""

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

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