Browse Source

removed redundant strings.CutPrefix from Decode

Arne Müller 1 year ago
parent
commit
ce6197a8e0
1 changed files with 0 additions and 3 deletions
  1. 0 3
      llm/llama.go

+ 0 - 3
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
 }