This implements a way to abort the generation of a batch of alternatives by the AI Copywriter. This is needed because if a batch was being generated when the user clicked one of the buttons to select a mode, it continued to be generated and to update the state while the new batch was in the making, resulting in a potential total of more alternatives than requested. task-3572397 Part-of: odoo/odoo#139857