class_docstr: Wrapper around the BigDL-LLM
  
  Example:
      .. code-block:: python
  
          from langchain.llms import LlamaLLM
          llm = LlamaLLM(model_path="/path/to/llama/model")
docstr: Performs sanity check, preparing parameters in format needed by llama_cpp.
  
  Args:
      stop (Optional[List[str]]): List of stop sequences for llama_cpp.
  
  Returns:
      Dictionary containing the combined parameters.
docstr_tok: ["Performs","sanity","check",",","preparing","parameters","in","format","needed","by","llama_cpp",".","Args",":","stop","(","Optional","[","List","[","str","]","]",")",":","List","of","stop","sequences","for","llama_cpp",".","Returns",":","Dictionary","containing","the","combined","parameters","."]
code: def _get_parameters(
      self, stop: Optional[List[str]] = None
  ) -> Dict[str, Any]:
      """
      Performs sanity check, preparing parameters in format needed by llama_cpp.
  
      Args:
          stop (Optional[List[str]]): List of stop sequences for llama_cpp.
  
      Returns:
          Dictionary containing the combined parameters.
      """
  
      # Raise error if stop sequences are in both input and default params
      if self.stop and stop is not None:
          raise ValueError(
              "`stop` found in both the input and default params."
          )
  
      params = self._default_params
  
      # llama_cpp expects the "stop" key not this, so we remove it:
      params.pop("stop_sequences")
  
      # then sets it as configured, or default to an empty list:
      params["stop"] = self.stop or stop or []
  
      return params
  
imports: import logging
  import importlib
  from typing import Any, Dict, Generator, List, Optional
  from pydantic import Field, root_validator
  from langchain.callbacks.manager import CallbackManagerForLLMRun
  from langchain.llms.base import LLM
  from .transformersllm import TransformersLLM
label_desc: Use image node_id 5 for calling the _BaseCausalLM obj's underlying member method code with example usage: obj._get_parameters(stop) and returns: params