Saltar al contenido principal

Variable: RESERVED_CUSTOM_BODY_KEYS

const RESERVED_CUSTOM_BODY_KEYS: readonly ["stream", "stream_options", "model", "messages", "prompt", "input"]

Defined in: packages/contracts/src/provider.ts:288

Request-body keys owned by the adapters. Overriding them via customIncludeBody (or dropping them via customExcludeBody) would silently desynchronize the wire format from what the adapter parses — e.g. stream: false makes the provider answer with JSON while the adapter keeps parsing SSE, producing an empty generation reported as success — and would falsify the model recorded in the prompt-context audit.