Engineering·11 min
Frequency and Presence Penalty Explained
OpenAI's frequency_penalty and presence_penalty, verified against the API reference: ranges, defaults, Gemini's binary version, and why Anthropic and reasoning models don't expose them the same way.
Read more