chatgpt-web
chatgpt-web copied to clipboard
Add support of presence_penalty and frequency_penalty parameter
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