def __init__(self, config: BaseLLMConfig):
        """
        :param config: Configuration for the LLM.
        """
        self.config = config
        self.llm_type = config.llm_type
        self.api_key = config.api_key
        self.api_base = config.api_base
        self.chat_model = config.chat_model
        self.temperature = config.temperature
        self.top_p = config.top_p
        self.max_tokens = config.max_tokens
        self.timeout = config.timeout
        self.enable_langfuse = config.enable_langfuse

        :param config: Configuration for the LLM.
        
backend/director/llm/base.py