If he is your PI, then it is appropriate for him to write your recommendation letter.
That being said, if you had more direct contact with his collaborator, is it possible for them to also write you a letter? Or at the very least for your PI to include some comments/quotes from the collaborator who worked with you when he writes your LOR?