It depends on the pepper plant, but it may be unrealistic to expect your plant to set fruit in the heat of summer.
I have a few pepper plants that will keep fruiting through the summer, but for most of them, I'm happy for them to stay (relatively) healthy until temperatures cool down latter in the year.