Help with Zygote and parameters

gradient((a1,a2)->F(L1,L2; a1=a1,a2=a2), a1,a2)

should do the trick, no?