Skip to content

vllm.entrypoints.generate.base.protocol

Classes:

Functions:

SpeculativeDecodingMetrics

Bases: OpenAIBaseModel

Per-request speculative-decoding acceptance metrics.

Experimental, subject to change. Only populated for single-sequence requests (n == 1); null for n > 1, mirroring the timing metrics.

resolve_return_mm_kwargs_alias(data)

Map the deprecated return_mm_kwargs=False onto mm_payload="none".

structured_outputs_from_response_format(structured_outputs, response_format)

Apply response_format overrides to structured_outputs.

validate_cache_salt(cache_salt)

Validate cache salts before they reach downstream cache backends.

validate_request_mm_kwargs(*, mm_processor_kwargs, media_io_kwargs, trust_request_mm_kwargs)

Reject untrusted per-request multimodal kwarg overrides.

validate_structural_tag_response_format(response_format)

Validate structural tags before they are sent to the engine.

Engine-side validation reports malformed structural tags as generation failures. OpenAI request parsing should classify them as bad requests.