vllm.entrypoints.openai.responses.serving
¶
Classes:
OpenAIServingResponses
¶
Bases: GenerateBaseServing
_create_harmony_logprobs(token_logprobs, request, tokenizer)
¶
Convert (token_id, logprobs) pairs collected by HarmonyContext.
Streaming deltas, streaming done events and the final response all go through here so they report identical logprobs.
_token_bytes(token_id, text)
¶
Bytes of a token for the logprobs bytes field.
For gpt-oss, these are the token's raw bytes, so tokens that split a multi-byte character can be joined back into it.
_topk_logprobs(logprobs, top_logprobs, tokenizer)
¶
Returns the top-k logprobs from the logprobs dictionary.
_validate_generator_input(engine_input)
¶
Add validations to the input to the generator here.