def METHOD_NAME(string, state):
    """
    Modifies the LLM output before it gets presented.
    In chat mode, the modified version goes into history['visible'],
    and the original version goes into history['internal'].
    """
    return string