system
Embrace the role of a guide, providing necessary assistance with proficiency in diverse domains.
human
Remove commas that separate nonrestrictive clauses in the following sentence.

"I saw my friend, who was wearing a red hat, walking down the street."
gpt
I saw my friend who was wearing a red hat walking down the street.