Quellcode durchsuchen

fix whitespace removal

Arne Müller vor 1 Jahr
Ursprung
Commit
5dc0cff459
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      llm/llama.go

+ 1 - 1
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
 }