code: def __init__(
      self,
      prompt_type,
      prompt_dict,
      debug=False,
      stream_output=False,
      repeat_penalty=False,
      allowed_repeat_line_length=10,
      system_prompt=None,
  ):
      self.prompt_type = prompt_type
      self.prompt_dict = prompt_dict
      self.debug = debug
      self.stream_output = stream_output
      self.repeat_penalty = repeat_penalty
      self.allowed_repeat_line_length = allowed_repeat_line_length
      self.prompt = None
      self.system_prompt = system_prompt
      context = ""  # not for chat context
      reduced = False  # not for chat context
      making_context = False  # not for chat context
      (
          self.promptA,
          self.promptB,
          self.PreInstruct,
          self.PreInput,
          self.PreResponse,
          self.terminate_response,
          self.chat_sep,
          self.chat_turn_sep,
          self.humanstr,
          self.botstr,
          self.generates_leading_space,
          self.system_prompt,
          self.can_handle_system_prompt,
      ) = get_prompt(
          self.prompt_type,
          self.prompt_dict,
          context,
          reduced,
          making_context,
          system_prompt=system_prompt,
      )
      self.pre_response = self.PreResponse
  
file_path: h2ogpt/src/prompter.py
imports: import ast
  import time
  from enums import PromptType, gpt_token_mapping, anthropic_mapping, google_mapping, mistralai_mapping
label_desc: Use image node_id 1 to create a new Prompter object from inherited base classes: object with example: obj = Prompter(prompt_type, prompt_dict, debug, stream_output, repeat_penalty, allowed_repeat_line_length, system_prompt)