chatgpt-web icon indicating copy to clipboard operation
chatgpt-web copied to clipboard

Add support of presence_penalty and frequency_penalty parameter

Open PeterDaveHello opened this issue 1 year ago • 0 comments

The frequency and presence penalties help reduce the likelihood of repetitive token sequences, allowing for more varied and contextually appropriate outputs.

By implementing these options, we can gain finer control over the AI's behavior, leading to improved content generation.

Reference docs:

  • https://platform.openai.com/docs/api-reference/chat/create#chat-create-frequency_penalty
  • https://platform.openai.com/docs/api-reference/chat/create#chat-create-presence_penalty
  • https://platform.openai.com/docs/advanced-usage/frequency-and-presence-penalties

PeterDaveHello avatar Aug 16 '24 15:08 PeterDaveHello