Only the chosen players (notified by a message) can use the commands. Usually these are Player 1 andPlayer 6.
Use -AIrepick XX command. XX is the number of the slot incomplete AI occupies,
e.x -AIrepick2 , this will make Teal AI player repick his hero.
Note : AI will not lose gold if you use this command.