vllm.entrypoints.openai.engine.protocol ¶
GenerationError ¶
Bases: Exception
raised when finish_reason indicates internal server error (500)
Source code in vllm/entrypoints/openai/engine/protocol.py
validate_structural_tag_response_format ¶
validate_structural_tag_response_format(
response_format: AnyStructuralTagResponseFormat
| dict[str, Any],
) -> None
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.