fix whitespace removal

This commit is contained in:
Arne Müller 2023-10-18 08:15:27 +02:00
parent 08b0e04f40
commit 5dc0cff459

View File

@ -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
}