Frequency Penalty is a parameter that reduces the likelihood of generating tokens that have already appeared in the output, with the penalty increasing based on how many times the token has appeared. This helps prevent repetitive text generation.
Unlike presence penalty (which applies equally regardless of count), frequency penalty scales with the number of occurrences, more strongly discouraging tokens that appear many times.