Add custom_params to completion_route
Fixes #5661