Expand description
vLLM contract: OpenAI reuse, shared engine operations, and vLLM overrides.
Source: vLLM v0.28.0 sampling checks and model limits. This pin does not establish later revisions or HTTP conformance. Tiny-temperature flooring and greedy rewrites are not implemented.
Re-exports§
pub use super::openai::MAX_FREQUENCY_PENALTY;pub use super::openai::MAX_PRESENCE_PENALTY;pub use super::openai::MAX_TEMPERATURE;pub use super::openai::MAX_TOP_P;pub use super::openai::MIN_FREQUENCY_PENALTY;pub use super::openai::MIN_LOGPROBS;pub use super::openai::MIN_PRESENCE_PENALTY;pub use super::openai::MIN_TEMPERATURE;pub use super::openai::validate_frequency_penalty;pub use super::openai::validate_presence_penalty;pub use super::openai::validate_temperature;
Constants§
- MAX_
LOGPROBS - Fixed library upper bound for completion
logprobs. - MAX_
MIN_ P - Inclusive upper bound for
min_p. - MIN_
MIN_ P - Inclusive lower bound for
min_p. - MIN_
TOP_ P_ EXCLUSIVE - Exclusive lower bound for
top_p; 0 itself is rejected. OpenAI’s baselinesuper::openai::MIN_TOP_Pis inclusive instead.
Traits§
- Vllm
Validation - Covered vLLM request checks.
Functions§
- validate_
completion_ logprobs - Accepts
Noneor the integer/v1/completionslogprobsin 0..=20. - validate_
min_ p - Accepts
Noneormin_pin [0, 1]. - validate_
top_ p - Accepts
Noneortop_pin (0, 1].