On the race loading screen there is an option to adjust difficultly/settings before you start the race event, I believe AI difficulty is the first entry!
You can change the difficulty at any point during loading between sessions. From practice 1 to practice 2, practice 2 to practice 3 etc. Even between qualifying and the actual race.