소스 검색

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
 }