mirror of
https://github.com/tcsenpai/ollama.git
synced 2025-07-23 09:40:03 +00:00
fix whitespace removal
This commit is contained in:
parent
08b0e04f40
commit
5dc0cff459
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user