فهرست منبع

fix whitespace removal

Arne Müller 1 سال پیش
والد
کامیت
5dc0cff459
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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
 }