1
0
This commit is contained in:
liushuang 2025-10-11 13:57:21 +08:00
parent 3a5be9534c
commit 11608bb0a6

View File

@ -4,8 +4,9 @@
#### 分支release/v0.11.0
https://github.com/vllm-project/vllm/blob/releases/v0.11.0/vllm/v1/structured_output/request.py
```python
# https://github.com/vllm-project/vllm/blob/releases/v0.11.0/vllm/v1/structured_output/request.py
def get_structured_output_key(sampling_params: SamplingParams) -> StructuredOutputKey:
params = sampling_params.structured_outputs
assert params is not None, "params can't be None."
@ -37,8 +38,9 @@ def get_structured_output_key(sampling_params: SamplingParams) -> StructuredOutp
#### 分支release/v0.10.2
https://github.com/vllm-project/vllm/blob/releases/v0.10.2/vllm/v1/structured_output/request.py
```python
# https://github.com/vllm-project/vllm/blob/releases/v0.10.2/vllm/v1/structured_output/request.py
def get_structured_output_key(
sampling_params: SamplingParams) -> StructuredOutputKey:
# 参数用的是 guided_decoding
@ -72,8 +74,9 @@ def get_structured_output_key(
#### 分支release/v0.11.0
https://github.com/vllm-project/vllm/blob/releases/v0.11.0/vllm/sampling_params.py
```python
# https://github.com/vllm-project/vllm/blob/releases/v0.11.0/vllm/sampling_params.py
class SamplingParams(
msgspec.Struct,
omit_defaults=True, # type: ignore[call-arg]
@ -573,6 +576,8 @@ class SamplingParams(
#### 分支release/v0.10.2
https://github.com/vllm-project/vllm/blob/releases/v0.10.2/vllm/sampling_params.py
```python
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project