[Frontend] Support bad_words in the /v1/completions endpoint (#46793)