Duplicated from ldhldh/langchain_kaka_api
53 unmodified lines545556575758596053 unmodified lines fn_index=0 ) result = str(result) output = result[len(x)-3:] output = result[len(x)-4:] outout = re.sub("[하하]", "ㅎㅎ", output) output = output.split('<|endoftext|>')[0] output = output.split('\n')[0]