Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

fix whitespace removal

Arne Müller5dc0cff45921
diff --git a/llm/llama.go b/llm/llama.go
index 6577abbcc..d2c6f76fa 100644
--- a/llm/llama.go
+++ b/llm/llama.go
@@ -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
}