From 5dc0cff4592132635a2445ef6ed80103927e08af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arne=20M=C3=BCller?= Date: Wed, 18 Oct 2023 08:15:27 +0200 Subject: [PATCH] fix whitespace removal --- llm/llama.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llm/llama.go b/llm/llama.go index 6577abbc..d2c6f76f 100644 --- a/llm/llama.go +++ b/llm/llama.go @@ -666,7 +666,7 @@ func (llm *llama) Decode(ctx context.Context, tokens []int) (string, error) { } // decoded content contains a leading whitespace - decoded.Content, _ = strings.CutPrefix(decoded.Content, "") + decoded.Content, _ = strings.CutPrefix(decoded.Content, " ") return decoded.Content, nil }