"examples/vscode:/vscode.git/clone" did not exist on "7c823c2ed72aed5dc0db24f368a3663302e71177"
Commit 5dc0cff4 authored by Arne Müller's avatar Arne Müller
Browse files

fix whitespace removal

parent 08b0e04f
...@@ -666,7 +666,7 @@ func (llm *llama) Decode(ctx context.Context, tokens []int) (string, error) { ...@@ -666,7 +666,7 @@ func (llm *llama) Decode(ctx context.Context, tokens []int) (string, error) {
} }
// decoded content contains a leading whitespace // decoded content contains a leading whitespace
decoded.Content, _ = strings.CutPrefix(decoded.Content, "") decoded.Content, _ = strings.CutPrefix(decoded.Content, " ")
return decoded.Content, nil return decoded.Content, nil
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment