def METHOD_NAME(config: RouteConfig):
    prov = get_provider(config.model.provider)(config)
    async def _completions(
        payload: completions.RequestPayload,
    ) -> completions.ResponsePayload:
        return await prov.completions(payload)
    return _completions