Commit 730996e5 authored by Arne Müller's avatar Arne Müller
Browse files

use TrimPrefix instead of TrimLeft

parent ce6197a8
......@@ -465,7 +465,7 @@ func (llm *llama) Predict(ctx context.Context, prevContext []int, prompt string,
}
// Remove leading spaces from prevConvo if present
prevConvo = strings.TrimLeft(prevConvo, " ")
prevConvo = strings.TrimPrefix(prevConvo, " ")
var nextContext strings.Builder
nextContext.WriteString(prevConvo)
......
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