mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-10 15:57:04 +00:00
fix whitespace removal
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user