Skip to content

Set History Frequency Penalty

Purpose of the Node

This node allows you to set the frequency penalty value for a chat history. The frequency penalty controls the likelihood of the model generating previously generated tokens. This can help to control repetition and encourage the model to be more diverse in its responses.

Pins

Pin NamePin DescriptionPin TypeValue Type
StartInitiate ExecutionExecutionNormal
HistoryChatHistoryStructArray
Frequency PenaltyFrequency Penalty ValueFloatNormal
EndDone with the ExecutionExecutionNormal
HistoryUpdated ChatHistoryStructArray