Skip to content

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

removed redundant strings.CutPrefix from Decode

Arne Müllerce6197a8e00c
diff --git a/llm/llama.go b/llm/llama.go
index bd5c3bb76..a51ae86ef 100644
--- a/llm/llama.go
+++ b/llm/llama.go
@@ -668,9 +668,6 @@ func (llm *llama) Decode(ctx context.Context, tokens []int) (string, error) {
return "", fmt.Errorf("unmarshal encode response: %w", err)
}
- // decoded content contains a leading whitespace
- decoded.Content, _ = strings.CutPrefix(decoded.Content, "")
-
return decoded.Content, nil
}