You can use the chain rule d/dx f(g(x)) = f'(g(x)) * g'(x) [where ' denotes d/dx as well]:

For e^(g(x)) this results in e^(g(x)) *g'(x). Here, we made use of the fact that d/dx e^x = e^x.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence