fields.content and
fields.snippets each now accept an object of
ceilings, alongside the existing true/false. content is capped at
20,000 characters by default; pass {"max_characters_per_result": 500} to
change it, or {"max_snippets_per_result": 5} to bound snippets.
Highlights
- Content ceiling, configurable —
max_characters_per_result, 100 to 1,000,000 characters. - Snippet ceilings, configurable —
max_snippets,max_snippets_per_result,max_tokens, andmax_tokens_per_resultall take explicit values now, not just their built-in bounds. - Same shape either way — Each
fieldsmember still accepts a plain boolean; only callers who want a non-default ceiling need the object form. - Rejected outside range — An out-of-range value returns a
400with theINVALID_REQUESTcode before anything is billed.
Quick Start
Control content length
Setting a ceiling on content per result
Get snippets
Tuning how many snippets you get