From df489261ac2870aef29ec33b113780ef136fab43 Mon Sep 17 00:00:00 2001 From: Hardik Shah Date: Mon, 26 Aug 2024 07:35:44 -0700 Subject: [PATCH] =?UTF-8?q?add=20special=20unicode=20character=20=E2=86=B5?= =?UTF-8?q?=20to=20showcase=20newlines=20in=20model=20prompt=20templates?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- llama_toolchain/cli/model/template.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llama_toolchain/cli/model/template.py b/llama_toolchain/cli/model/template.py index 1915e87d3..abdf20811 100644 --- a/llama_toolchain/cli/model/template.py +++ b/llama_toolchain/cli/model/template.py @@ -63,7 +63,8 @@ class ModelTemplate(Subcommand): rendered += colored(tok, "yellow", attrs=["bold"]) else: rendered += tok - rendered += "\n" + + rendered = rendered.replace("\n", "↵\n") print_table( [ ("Name", colored(template.template_name, "white", attrs=["bold"])),