code: def fix_text(prompt_type1, text1):
      if prompt_type1 == "human_bot":
          # hack bug in vLLM with stopping, stops right, but doesn't return last token
          hfix = "<human"
          if text1.endswith(hfix):
              text1 = text1[: -len(hfix)]
          hfix = "<bot"
          if text1.endswith(hfix):
              text1 = text1[: -len(hfix)]
      if prompt_type1 == "docsgpt":
          # hack bug in vLLM with stopping, stops right, but doesn't return last token
          hfix = "### Inst"
          if text1.endswith(hfix):
              text1 = text1[: -len(hfix)]
      return text1
  
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 5 for calling the Prompter obj's underlying member method code with example usage: obj.fix_text(prompt_type1, text1) and returns: text1