Logit bias

Logit bias adjusts selected token scores before sampling to encourage or discourage their generation.

The setting uses token IDs from the relevant tokenizer rather than simply specifying words. A word may split into several tokens, and different spellings may use different IDs. Model-dependent support and probabilistic behavior mean this is not a substitute for output validation or security controls.

Source: OpenAI Chat API reference

All AI terms