Skip to main content

AI__PRESENCE_PENALTY

Constant AI__PRESENCE_PENALTY 

Source
pub const AI__PRESENCE_PENALTY: &str = "ai.presence_penalty";
๐Ÿ‘ŽDeprecated:

Use GEN_AI__REQUEST__PRESENCE_PENALTY (gen_ai.request.presence_penalty) instead.

Expand description

Used to reduce repetitiveness of generated tokens. Similar to frequency_penalty, except that this penalty is applied equally to all tokens that have already appeared, regardless of their exact frequencies.

  • PII: Maybe
  • Rewriting behavior: Backfill

ยงAliases